是否可以将NSMutableString转换为char *
例如:
NSString* someval = @"This is a test.";
NSMutableString *temp = [NSMutableSTring stringWithString:someval];
char * temp2 = ????Not sure what to do here???;发布于 2011-11-03 06:41:37
使用-UTF8String方法:
NSString* someval = @"This is a test.";
NSMutableString *temp = [NSMutableString stringWithString:someval];
const char * temp2 = [temp UTF8String];https://stackoverflow.com/questions/7988187
复制相似问题