NSInvalidArgumentException - receiver has no segue with identifier

前端 未结 8 1593
迷失自我
迷失自我 2020-11-29 07:32

I have been trying everything for hours, and nothing\'s worked. I am trying to segue between two view controllers, from one tableViewController to another tableViewControlle

相关标签:
8条回答
  • I had this same problem. In my initializer - (id)initWithCoder:(NSCoder *)aDecoder I was doing self = [super init]; when I should have done self = [super initWithCoder:aDecoder];. When I fixed this everything worked as expected.

    0 讨论(0)
  • 2020-11-29 08:05

    Had this problem with an unwind segue. Finally realized that I lost my identifier when I replaced a view controller on the storyboard. I re-added it by clicking on the unwind segue in the document outline (sidebar of storyboard), and then in the attributes inspector, add the identifier for it.

    If nothing else works, at lease in regards to unwind segues, you can call

    [self dismissViewControllerAnimated:YES completion:nil];
    
    0 讨论(0)
提交回复
热议问题