ios - Unwind Segue skips UITabBarController to previous UIViewController -
i’m experiencing problem unwind segue skipping uitabbarcontroller , going previous uiviewcontroller instead. current set
uinavcontroller > uiviewcontroller1 > uiviewcontroller2 > uitabbarcontroller(uiviewcontroller3) > uiviewcontroller4
when use unwind segue uiviewcontroller4, i’m returned uiviewcontroller2, rather uitabbarcontroller(uiviewcontroller3).
as test have entered following code
-(ibaction)doneunwindsegue:(uistoryboardsegue *)segue sender:(id)sender{ nslog(@"anything? 1"); }
in uiviewcontrollers 1 , 2 , in uiviewcontroller3 inside uitabbarcontroller. (the number after "anything?" changed each view controller know 1 called.)
when code removed uiviewcontroller2, unwind segue goes uiviewcontroller1 , when removed both 1 , 2, nothing happens. can’t see way unwind uiviewcontroller3.
when clicking on right arrow next action, taken correct place in uiviewcontroller3 inside uitabbarcontroller. (assuming code above has been removed uiviewcontroller 1 , 2. clicking arrow while not while take me uiviewcontroller2, uiviewcontroller1 if has been removed uiviewcontroller2)
i’m calling unwind when tapping on uitableviewcell in uiviewcontroller4, i’ve gotten same results uibutton located within same viewcontroller. when creating unwind segue, drag prototype cell exit icon , choose "selection segue" relevant action.
hopefully i've explained little complex , strange issue.
thank can provide.
Comments
Post a Comment