mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
action for iPad 8.x fixed
This commit is contained in:
@ -343,6 +343,12 @@ function showUIAlertController(alertController: UIAlertController) {
|
||||
if (topMostFrame) {
|
||||
var viewController: UIViewController = topMostFrame.currentPage && topMostFrame.currentPage.ios;
|
||||
if (viewController) {
|
||||
if (alertController.popoverPresentationController) {
|
||||
alertController.popoverPresentationController.sourceView = viewController.view;
|
||||
alertController.popoverPresentationController.sourceRect = CGRectMake(viewController.view.bounds.size.width / 2.0, viewController.view.bounds.size.height / 2.0, 1.0, 1.0);
|
||||
alertController.popoverPresentationController.permittedArrowDirections = 0;
|
||||
}
|
||||
|
||||
viewController.presentModalViewControllerAnimated(alertController, true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user