I have been having problems with my NSMutableAttributedString. I have a UITextView object with wrapping enabled, and it can hold 80 characters per line. I want to set the attributed text of the UITextView. My attributed string contains 85 'space' characters, and the letter 'A' at the end. I want the characters to wrap on the textview, but the 'A' is always pushed to left of the second line, as if some spaces were being trimmed.
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"//85 characters of space and an A here"];
textview.setAttributedText = str;
When I do this, the spaces show just fine in the first line, but when it wraps, it has problems. Any ideas? Thanks in advance!