XCode custom segue class stuck

后端 未结 5 1933
耶瑟儿~
耶瑟儿~ 2021-01-04 08:29

this question might seem a little weird, but I can\'t wrap my head around why this is happening.

What I did was I renamed a custom segue class, and reflected it in t

相关标签:
5条回答
  • 2021-01-04 09:05

    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.

    0 讨论(0)
  • 2021-01-04 09:06

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

    0 讨论(0)
  • 2021-01-04 09:15

    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.

    0 讨论(0)
  • 2021-01-04 09:23

    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 {
    .
    .
    .
    }
    
    0 讨论(0)
  • 2021-01-04 09:29

    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.

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