iOS8 iPad模态视图现在有圆角(UIModalPresentationFormSheet)。有没有办法可以消除这种行为?我已经尝试将view.layer.cornerRadius设置为0,但这不起作用(如何在iOS7上设置角点)。任何帮助表示赞赏。
答案 0 :(得分:0)
使用view.superview.layer.cornerRadius = 0;
答案 1 :(得分:0)
从模式中打开的UINavigationController
中的可见视图:
self.parentViewController.view.superview.layer.cornerRadius