iOS 13: Swift - 'Set application root view controller programmatically' does not work

后端 未结 14 1075
北恋
北恋 2020-12-01 01:43

I have following code in my AppDelegate.swift to setup root view controller for an iOS application. But it does not work. It follows Target structure (defined under General

14条回答
  •  爱一瞬间的悲伤
    2020-12-01 02:25

    If you follow this answer https://stackoverflow.com/a/58084612/6667477

    and if you initialise a rootController programmatically you also have to remove reference to main storyboard from:

    1. Info.plist.

    1. Deployment info

提交回复
热议问题