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:
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
Post a Comment