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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -