Reputation: 630
I am programmatically writing to a UITextView a comma separated string. Example: NSString* str = @"cat,dog,big dog,kitten".
On [textView setText:str]; I get the results as:
cat,dog,big
dog,kitten.
I don't understand why is the space getting converted to a line break. Any idea?
Upvotes: 3
Views: 759
Reputation: 28727
the space gets converted to a line break, because the text did not fit into one line. This line break mode cannot be disabled, or changed. But you can rise the width of the textview.
Upvotes: 1