ios - Present View Controller right after Dismissing View Controller with no animation -


i have uiimagepickercontroller presented on screen. when choose photo need dismiss pickercontroller present photoeditcontroller. here code

picker.dismissviewcontrolleranimated(false, completion: {     self.presentviewcontroller(editphotovc, animated: false, completion: nil) }) 

there 0.1s flash between dismissing old vc , presenting new vc presentingviewcontroller (self) shown. how avoid in elegant solution not hacking through? thanks

the standard way of implementation dismiss first view controller (vc) animation , present second vc animation.

however, depending on view hierarchy, have second vc loaded first , present first vc on top of it. dismissing first vc without animation should show underneath second vc without delay.

third approach, llooggaann suggested, don't dismiss first vc , present second vc. once done, dismiss entire view controller hierarchy in 1 shot.


Comments