Insert a character into the displayed text.
Required.
SDKs
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
- (void)insertText:(NSString *)text;
Parameters
text
A string object representing the character typed on the system keyboard.
Discussion
Add the character text
to your class’s backing store at the index corresponding to the cursor and redisplay the text.