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.
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.
Comments
Post a Comment