I want to log an NSString but when I log it, it doesn't show the new line character " n". How can I make it so it does? Thanks.
You can process the string first and replace all occurrences of \n
with \\n
NSString *newString = [originalString stringByReplacingOccurrencesOfString:@"\n" withString:@"\\n"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With