摘要:
//1、init初始化 NSString * str1 = [[NSString alloc] init]; NSLog(@"str1 = %@",str1);//2、initWithBytes:length:encoding:从给定字符串按照给定获取方向,得到指定个数的字符 NSString * str2 = [[NSString alloc] initWithBytes:"afasffaf" length:6 encoding:NSUTF8StringEncoding]; NSLog(@"str2 = %@",str2);//3、 阅读全文