According to the doc,
Marked text, which is part of multistage text input, represents provisionally inserted text that the user has yet to confirm. It is styled in a distinctive way. The range of marked text always contains within it a range of selected text, which might be a range of characters or the caret.
And in the chapter Managing the Keyboard, Figure 5-2 shows what the marked text is:
Given the 4th & 6th image, the top bar on the keyboard presents the marked text, like "修", "修改", "修身", etc.
What I'm confused about is HOWTO :
- Detect the user tap on the marked text. It's to replace the text selected, or just inserted the marked text.
- Show custom text on the bar. For example,
[textView showMarkedText:@"hello" atIndex:0]
.
Thanks.