I have a UITextView that receives keyboard input. The "Enable automatic key return" checkbox is checked, so when the UITextView empty, the return key is disabled.
I have an Emoticons panel above the keyboard that can also add emoticons to a UITextView , but here's the problem; When the UITextView empty, and I add a smiley to the UITextView as follows:
[inputTextView insertText:@"\ue40d"];
then ReturnKey is still disabled, although the text property of the UITextView is not empty.
I tried this after inserting an emoticon:
[inputTextView setEnablesReturnKeyAutomatically:NO]
No results. It seems that turning on / off the keyboard return key only starts by entering characters through the keyboard.
Any idea how to manually enable / disable the return key?
Bas holtrop
source share