ios - instantiateViewControllerWithIdentifier returning nil -


i have authorization window. when app starting okey. tap sign in , go next window. when tap sign out , want @ authorization window - nil. in method signinview controller nil.

enter image description here

you need take instance storyboard.

 let storyboard = uistoryboard(name: "main", bundle: nil)  let controller = storyboard.instantiateviewcontrollerwithidentifier(“myviewcontroller”)  

in way controller instance.

make sure set storyboard id controller.

enter image description here


Comments

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -