'Receiver (<ViewController:>) has no segue with identifier 'infoseg'

本秂侑毒 提交于 2019-12-06 04:29:15
Rick Pastoor

If your destination viewcontroller is inside a navigationcontroller, you might want to take a look at this question: How to set the delegate with a storyboard.

Edit: from the error it looks like the segue you are trying to perform is not attached to the viewcontroller you are starting from. Try to remove the seque and drag it from the viewcontroller your code is in to the ShowInfoViewController inside interface builder.

I had a similar issue - it turned out I had a trailing space on the segue identifier on the story board.

eg. 'SequeIdentifier ' - of course this is pretty hard to see in XCode

Had the same issue. Realized I was setting the root controller in AppDelegate.m and in Storyboard as well. Removed the code in AppDelegate.m and it fixed it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!