简体   繁体   中英

On iOS13 (with Xcode11) get Fatal Exception: NSInvalidArgumentException when trying to present RPSystemBroadcastPickerView

While presenting RPSystemBroadcastPickerView on iOS 13 , it shows an exception with the following description: Fatal Exception: NSInvalidArgumentException Application tried to present UIModalTransitionStylePartialCurl to or from non-fullscreen view controller. I am using Xcode Version 11.3.1 (11C504). Is there any solution to stop this exception?

This is because iOS 13 uses a new presentation style instead of the full screen. And it doesn't support the PartialCurl transition you need to change the default presentation style:

var navigationController = new UINavigationController(ctrl); navigationController.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; ctrl.ModalTransitionStyle = UIModalTransitionStyle.PartialCurl; PresentViewController(navigationController, animated: true, null);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM