ios - How to remove corner radius of the formsheet style UIViewController -


    @ibaction func popoverradarchart(sender: uibutton) {      let popoverviewcontroller = resulttwopopoverviewcontroller(nibname: "resulttwopopoverviewcontroller", bundle: nil)      popoverviewcontroller.modalpresentationstyle = uimodalpresentationstyle.formsheet     popoverviewcontroller.modaltransitionstyle = uimodaltransitionstyle.crossdissolve     popoverviewcontroller.preferredcontentsize = cgsizemake(540, 622)     popoverviewcontroller.view.layer.cornerradius = 0.0     popoverviewcontroller.view.layer.maskstobounds = true     presentviewcontroller(popoverviewcontroller, animated: true, completion: nil)  } 

if remove 4 corner radius 0.0.enter image description here

well in resulttwopopoverviewcontroller overide viewwilllayoutsubviews

- (void)viewwilllayoutsubviews {       [super viewwilllayoutsubviews];       self.view.superview.layer.cornerradius  = 0.0;          self.view.superview.layer.maskstobounds = no; } 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -