instantiateViewControllerWithIdentifier - Storyboard id set but still not working

后端 未结 6 972
抹茶落季
抹茶落季 2020-12-10 01:18

I have to created a segue programmatically however when I click on the button the view controller does not change to the next, Storyboard ID is set and still not working. Am

6条回答
  •  时光说笑
    2020-12-10 01:47

    Ran into this issue today, clearly set the Storyboard ID on the right panel but I was still getting the warnings that the VC was unreachable and did not have an identifier set. Fixed the issue after I unchecked the box that read "Inherit Module From Target" and ran the project.

    After the code successfully ran, it seems to now work with or without the box checked so it might be an Xcode bug... Anyway hope this helps.

提交回复
热议问题