NSString 与 char * 互转 char *url = "test"; NSString *urlStr = [NSStringstringWithUTF8String:url]; char *ch = [urlStr UTF8String];