I have a UITextView in which I want the initial value to be "@username" when the keyboard appears (note the space after the username). Thus, the user can immediately type text without pressing the spacebar. So I:
textView.text = [NSString stringWithFormat:@"@%@ ", username];
But it seems impossible for the property to UITextView textend with a space (it is always deleted). I'm right? Is there a workaround for this?
I tried using \schar and did not succeed.
EDIT : see first answer below. The error was sent by Apple. - # 8038616
source
share