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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -