@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)
}
如果我可以将这四个角半径删除到 0.0。
最佳答案
那么在你的 ResultTwoPopoverViewController
覆盖 viewWillLayoutSubviews
- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
self.view.superview.layer.cornerRadius = 0.0;
self.view.superview.layer.masksToBounds = NO;
}
关于ios - 如何删除表单样式 UIViewController 的圆角半径,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27166311/