diff --git a/RMUniversalAlert.m b/RMUniversalAlert.m index 1b7e998..bd9f173 100644 --- a/RMUniversalAlert.m +++ b/RMUniversalAlert.m @@ -126,6 +126,11 @@ + (instancetype)showActionSheetInViewController:(UIViewController *)viewControll popover.sourceView = configuredPopover.sourceView; popover.sourceRect = configuredPopover.sourceRect; popover.barButtonItem = configuredPopover.barButtonItem; + } else { + popover.sourceView = viewController.view; + popover.sourceRect = viewController.view.bounds; + + popover.permittedArrowDirections = (UIPopoverArrowDirection) 0; } } tapBlock:^(UIAlertController *controller, UIAlertAction *action, NSInteger buttonIndex){