Skip to main content
make it clearer
Source Link
Serge Seredenko
  • 3.6k
  • 7
  • 24
  • 41

Just do it like this :)

NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 

Just do it like this :)

NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 

Just do it like this

NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 

Just do it like this :)

Just use like this :) NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 
Just use like this :) NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 

Just do it like this :)

NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 
added 147 characters in body
Source Link

Just use like this :)

NSString * strCheck = @"A\nB";

strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"];

label.text = strCheck;

Just use like this :) NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 

Just use like this :)

NSString * strCheck = @"A\nB";

strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"];

label.text = strCheck;

Just use like this :) NSString * strCheck = @"A\nB"; strCheck = [strCheck stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n"]; //This is to prevent for fetching string from plist or data structure label.numberOfLines = 0; label.lineBreakMode = NSLineBreakByWordWrapping; label.text = strCheck; 
Source Link
Loading