ios - UIAlertController's Dismissal -
launching
I see imposed a navigation intermediary singleton in your application I intermediary terms of primary View Controller infection Keeps for Therefore, to present a view controller, the consumer will call the navigation mediator to do this. It is also with the dismissal that it can reset the primary view controller.
I'm attendingThe problem is with the introduction of a UIAlertController I can not dismiss through my navigation arbitrator controller because this button is automatically discarded, so when If it is rejected then the ability to reset the primary view controller is lost.
The only solution that I have come to make an extension at the same time Uaielaart controller which view overrides WILLDisappear which reset the primary view controller like below. What is the method to cancel the default dismissal behavior?
extension UIAlertController {public override Dekenwillisap the Funk (Animated: bool) {super.viewWillDisappear (animated) Nevigeshnmiadiyetrkrsetpramiriwukantrolr (self.presentingViewController)}}
No, but before it expires, you can respond to events. UialertViewDelegate. AlertView: willDismissWithButtonIndex:
Or create your own alerts view.
Comments
Post a Comment