objective c - present transparent modal view in iOS 9 -
there lots of answers none seems working normally/perfectly ios 9 9.2.. please. simple scenario where:
1) storyboard segues connected single tobepresentedmodally view controller, chose uimodalpresentationovercurrentcontext switched , tried uimodalpresentationcurrentcontext when style storyboard wasn't working.
2) either black background after 1 second of happiness (it works fine second) or blank controller when trying present through code allocating class of tobepresentedmodally view controller.
any appreciated!
this how, have done in code
let viewcontroller = uistoryboard.loadviewcontroller("identifier") viewcontroller.providespresentationcontexttransitionstyle = true viewcontroller.definespresentationcontext = true viewcontroller.modalpresentationstyle = .overcurrentcontext self.presentviewcontroller(viewcontroller)
and working fine.
Comments
Post a Comment