UINavigationController 'corrupted navigation bar' issue

前端 未结 2 1487
醉梦人生
醉梦人生 2021-02-11 06:38

I\'m having serious problems getting my navigation controller to work and have tried pretty much every related question on this website.

My problem is that when I perfor

相关标签:
2条回答
  • 2021-02-11 07:18

    I finally figured out the problem.

    performSegueWithIdentifier was being called before viewDidAppear was called on the LoadingViewController. A synchronisation error basically.

    0 讨论(0)
  • 2021-02-11 07:21

    You should not perform segue in viewDidLoad. Try performing in viewDidApperar:

    Apple documentation:

    Displaying a View Controller’s Contents Programmatically … Present it from another visible view controller. …

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