I have a UITextView in which I want the initial value to be "@username " when they keyboard shows up (notice the space after the username). This way the user can start typing right away without having to tap space. So I do:
textView.text = [NSString stringWithFormat:@"@%@ ", username];
But it seems like it's impossible to have the UITextView
text
property ending with a space (it always gets stripped out). Am I correct? Is there any workaround for this?
I tried using the \s
char and no success.
EDIT: see first answer below. Bug has been submitted to Apple — #8038616