Quote:
Originally Posted by baja_yu
Post code. You probably need to add newline characters.
|
The uitextview content contains \n.
The string is correctly displayed with NSLog.
Moreover if I use
Code:
UISimpleTextPrintFormatter *textFormatter = [[UISimpleTextPrintFormatter alloc] initWithText:[self.myTextView.text stringByReplacingOccurrencesOfString:@"\n" withString:@"\n\n"]];
this resolves the issue, also if an empty line is duplicated.
For example, the string
Code:
First line
Second line
Third line
without the replacing it is printed as:
Code:
First lineSecond line
Third line
instead with the replacing:
Code:
First line
Second line
Third line