ios - Modal without rounded corners? -


i create modal in ios without rounded corners - modal represents uiviewcontroller in uinavigationcontroller.

when ill try with:

override func viewwillappear(animated: bool) {     self.navigationcontroller?.view.layer.cornerradius = 0 } 

it not working. there solution that?

edit: mean rounded corners here:

enter image description here

that code example (removed other useless code here)

already found solution. assign class rootviewcontroller , add there:

override func viewwilllayoutsubviews() {     super.viewwilllayoutsubviews()     self.view.superview!.layer.cornerradius  = 0.0     self.view.superview!.layer.maskstobounds = false } 

works fine.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -