objective c - iOS 7 NavigationController Segue Crash -
i have navigationcontroller initial view , viewcontroller root view. root view trying segue with:
[self.navigationcontroller performseguewithidentifier:@"segue" sender:self]; there´s view controller in storyboard , gave segue right identifier. on ios 8 works perfect, on ios 7 crashes next message:
*** terminating app due uncaught exception 'nsgenericexception', reason: 'could not find navigation controller segue 'segue'. force segues can used when source controller managed instance of uinavigationcontroller.' i don´t why it´s not working on ios 7...
update: here´s storyboard:
the problem is, segue has uinavigationcontroller source.
a uinavigationcontroller should not perform segue. should connected rootviewcontroller, may uiviewcontroller (or subclass). segue should performed rootviewcontroller of uinavigationcontroller. segue should have rootviewcontroller source , other uiviewcontroller (or subclass) destination.
your screenshot shows uinavigationcontroller connected rootviewcontroller. need set rootviewcontroller source of segue (having identifier segue), has uinavigationcontroller source. now, rootviewcontroller, phone call
[self performseguewithindentifier:@"segue" sender:nil] objective-c iphone ios7 uinavigationcontroller ios8
No comments:
Post a Comment