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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -