如何摆脱带有圆角的iOS 8 ModelView

时间:2014-09-18 13:56:56

标签: objective-c ios8

iOS8 iPad模态视图现在有圆角(UIModalPresentationFormSheet)。有没有办法可以消除这种行为?我已经尝试将view.layer.cornerRadius设置为0,但这不起作用(如何在iOS7上设置角点)。任何帮助表示赞赏。

2 个答案:

答案 0 :(得分:0)

使用view.superview.layer.cornerRadius = 0;

答案 1 :(得分:0)

从模式中打开的UINavigationController中的可见视图:

self.parentViewController.view.superview.layer.cornerRadius