Can't append space at end of NSString
- by Sam V
I have a UITextView in which I want the initial value to be "@username " (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 an NSString ending with a space (it always gets stripped out). Am I correct? Is there any workaround for this?