NSString *str = @"aaaa\
aaaa\
bbbb\
aaaa";
NSString *str1 = @"bbbb"
"cccc"
"dddd";
NSString *str2 = @"eeeee"\
@"ffff"\
@"ggggg";
NSString *str3 = @"iiiii"
@"jjjjj"
@"kkkkk";
NSLog(@"%@\n%@\n%@\n%@", str, str1, str2, str3);
输出是这样的:
aaaa aaaa bbbb aaaa
bbbbccccdddd
eeeeeffffggggg
iiiiijjjjjkkkkk
可以看到第一种是不一样的。