Create and Present modal view controller programmatically

后端 未结 1 970
梦毁少年i
梦毁少年i 2021-01-06 05:22

I am trying to programmatically declare a modal view controller from a view controller launched using storyboard. I would expect to see a blank view coming up but instead I

相关标签:
1条回答
  • 2021-01-06 05:49

    You're doing this too soon. There's no interface yet, in viewDidLoad. Put that code into viewDidAppear: instead, and see what happens.

    0 讨论(0)
提交回复
热议问题