stringByAppendingString与stringWithFormat
10月9日 iOS语法学习 stringByAppendingString:字串相加NSString *string1 =@”1”;NSString *string2 =[[string1 stringByAppendingString:@”2”]stringByAppendingString:@”3”]NSlog(@”%@”,string2) 结果是 1+2+3更加简洁的字串相加 stringW