ios - Why isn't my segue being performed? -
i have segue should take place when 1 of number of things happen, it's called programatically, so:
- (void)unwindaway { nslog(@"let's segue"); [self performseguewithidentifier:@"mysegue" sender:self]; nslog(@"we should have performed segue"); } - (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { nslog(@"let's segue"); }
but output in console is:
2014-05-29 22:20:30.173 app[7848:60b] let's segue 2014-05-29 22:20:30.178 app[7848:60b] should have performed segue
so can see, it's not calling prepareforsegue.
the segue name correct - if give invalid segue name errors you'd expect.
any ideas?
for unwind segues, prepareforsegue:sender:
called on view controller source of segue, in other words 1 you're exiting from.
Comments
Post a Comment