CR: future proof view placement if we change hierarchy

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent da7dae8163
commit 8898f4a6d4

@ -2682,8 +2682,9 @@ typedef enum : NSUInteger {
[systemMessageCell becomeFirstResponder];
UIMenuController *theMenu = [UIMenuController sharedMenuController];
[theMenu setTargetRect:systemMessageCell.titleLabel.frame inView:systemMessageCell];
CGRect targetRect = [systemMessageCell.titleLabel.superview convertRect:systemMessageCell.titleLabel.frame
toView:systemMessageCell];
[theMenu setTargetRect:targetRect inView:systemMessageCell];
[theMenu setMenuVisible:YES animated:YES];
}

Loading…
Cancel
Save