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.
well in resulttwopopoverviewcontroller
overide viewwilllayoutsubviews
- (void)viewwilllayoutsubviews { [super viewwilllayoutsubviews]; self.view.superview.layer.cornerradius = 0.0; self.view.superview.layer.maskstobounds = no; }
Comments
Post a Comment