ios - Unwind then segue without showing intermediate view controller -
i have 3 uiviewcontrollers -> b -> c, , -> d.
when user done in c want unwind , segue d, cannot work without briefly showing before segue d happens. have tried disabling animates property segue still flashes view less second.
any idea how can fix this?
try code in swift 3 :-
let oldvcs = self.navigationcontroller?.viewcontrollers! nsarray let newvcs = nsmutablearray() // add root vc in new array of vcs newvcs .add(oldvcs?[0]) // add new vc after root vc newvcs .add("your new vc") self.navigationcontroller?.setviewcontrollers(newvcs, animated: true)
Comments
Post a Comment