2

たとえば、上または下のPasteポップアップ位置を制御することは可能ですか?UITextFieldUITextField

4

1 に答える 1

1

はい、あなたが探している方法はsetTargetRect:inView:. 詳細については、Apple Docsを参照してください。

これはAppleの一般的なコードです

UIMenuController *theMenu = [UIMenuController sharedMenuController];
CGRect selectionRect = CGRectMake (currentSelection.x, currentSelection.y, SIDE, SIDE);
[theMenu setTargetRect:selectionRect inView:self];
[theMenu setMenuVisible:YES animated:YES];
于 2013-01-25T15:59:00.593 に答える