I have a UITableView and each row I cliked display a UIViewController containing information store in my database like this:
[self.myViewController.myViewControllerDescription setText:[self.fiche description]];
The information store in the database contains HTML syntaxe ( < BR > ) and I display them in a UITextView (as you know the UITextView will not recognize the < BR > tag),
I wanna know how can I find this character inside my result and replace it with word wrap, I thik its’/n’
Thanks,
Given some string, you can find all instances of
<br>and replace them with the “newline” character (denoted in C and Objective-C by\n) with the NSString methodstringByReplacingOccurrencesOfString:withString:, as such: