UIView default styling has rounded corners?

后端 未结 3 700
渐次进展
渐次进展 2021-01-15 01:24

I am using a UIPopoverController to display a UIView. The layout is somewhat similar to a UISplitViewController so it is very strange

3条回答
  •  甜味超标
    2021-01-15 01:58

    For anyone who uses UIPopoverPresentationController, the following should work.

    override open func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
    
        view.superview?.layer.cornerRadius = 0
    }
    

提交回复
热议问题