I have a photo selection flow that that goes as such:
VC1 push to VC2, present modal, dismiss modal, push VC3.
Upon dismissing the modal view however, self.navigationController
is null
Modal View:
[self dismissViewControllerAnimated:YES completion:^{
FBGalleryVC *vc = [[FBGalleryVC alloc] init];
[vc showVC3];
}];
Triggers VC2:
- (void)showVC3 {
NSLog(@"NavController=%@",self.navigationController);
VC3 *vc3 = [self.storyboard instantiateViewControllerWithIdentifier:@"VC3"];
[self.navigationController pushViewController:vc3 animated:YES];
}
It's unclear to me why the navigationController is getting 'unset' or returning as null.