I have a strange issue with navigation stack.
Overview: I have three view controllers (e.g AViewController
, BViewController
, CViewController
) with two navigation possibilities:
AViewController
to CViewController
.AViewController
to BViewController
to CViewController
, orAnd AViewController
is embedded in a UINavigationController
. I am using segues for transitions, all defined in storyboard. And all segues are of Show (e.g. Push)
type. And all the transitions are performed using performSegueWithIdentifier(String, AnyObject?)
method.
Problem: With the first transition, everything works fine. Everything means self.navigationController.popViewController(animated)
in CViewController works fine, to go back to AViewController
. But with second transition, self.navigationController
is nil
in CViewController
, although it is not nil
in BViewController
.
So where am I getting wrong ?
I don't know how I had created the Segue
, but I recreated Segue
from BViewController
to CViewController
and everything worked fine.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments