Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIView* senderView = [sender valueForKey:@"view"]; //HACK
- UIPopoverPresentationController* popover = alertController.popoverPresentationController;
- if (popover)
- {
- popover.sourceView = senderView;
- popover.sourceRect = senderView.bounds;
- popover.permittedArrowDirections = UIPopoverArrowDirectionAny;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement