Does anyone know how to use line breaks in NSString? I need to do something like this -
[NSString stringWithFormat:@\"%@,\\n%@\", mystring1,mystring2];
In case \n or \r is not working and if you are working with uiwebview and trying to load html using < br > tag to insert new line. Don't just use < br > tag in NSString stringWithFormat.
Instead use the same by appending. i.e by using stringByAppendingString
yourNSString = [yourNSString stringByAppendingString:@"
"];