Skip to content

Commit 9f65b65

Browse files
committed
Fixed presentation of PFAlertView when rootViewController has presentedViewController.
1 parent f5d1279 commit 9f65b65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Parse/Internal/PFAlertView.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ + (void)showAlertWithTitle:(NSString *)title
5252

5353
UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
5454
UIViewController *viewController = keyWindow.rootViewController;
55+
while (viewController.presentedViewController) {
56+
viewController = viewController.presentedViewController;
57+
}
5558

5659
[viewController presentViewController:alertController animated:YES completion:nil];
5760
} else {

0 commit comments

Comments
 (0)