c语言的char*转换成NSString

char*results="abc";//charc2[]="abc";

NSString*charString=[[NSStringalloc]initWithCString:resultsencoding:NSUTF8StringEncoding];

相关推荐