Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange ;
- selectedRange.length != 0 : カーソルを表示しない
- == 0 : aStringのlocation文字目にカーソルを表示
- サンプル
- わたしはとりになりたい|
- location = 11
- わたしは|とりになりたい
- location = 4
- 私は鳥になりたい
- ---~~~~------
- length=2
- location = 2 (カーソルを表示しない)
Add Comment
Please, Sign In to add comment