У меня на экране отображается UIImagePickerController
. Когда я выбираю фотографию, мне нужно отклонить PickerController
, а затем сразу же представить другую PhotoEditController
. Вот мой код
picker.dismissViewControllerAnimated(false, completion: {
self.presentViewController(editPhotoVC, animated: false, completion: nil)
})
Между закрытием старого VC и представлением нового VC происходит вспышка 0,1 с, поэтому отображается PresentingViewController (self). Как мне избежать этого в элегантном решении, не взламывая его? Спасибо
If you present several view controllers in succession, thus building a stack of presented view controllers, calling this method on a view controller lower in the stack dismisses its immediate child view controller and all view controllers above that child on the stack. When this happens, only the top-most view is dismissed in an animated fashion; any intermediate view controllers are simply removed from the stack.
- person LLooggaann   schedule 26.09.2015