XCode custom segue class stuck

你说的曾经没有我的故事 提交于 2019-11-30 18:18:11

The answer is to reset the storyboard target membership, then reset the simulator.

This was what worked for me - I had to select the segue in interface builder and set the module from "None" to my project name, which appeared in the dropdown.

For others that came from the web searching for the answer: check if you have included implementation file in Build Phases. In my case, I had several targets and the second target was missing this implementation file.

mobibob

Check out this other SO question. Answer to "Issue #1" by declaring the custom-seque-class to be and objective-c class

Similiar SO Q&A - speaks to a flaw in XCode

Summary of answer:

@objc(CustomSequeLeft2Right)
class CustomSequeLeft2Right {
.
.
.
}

My problem was i explicitly set the "Class" name in interface builder; which was not required. It is managed by Xcode and default to UIStoryboardSegue.

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