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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -