//char* const char* 转NSString
NSString * str = [NSString stringWithUTF8String:chStr];
//NSString 转char* const char*
const char * chStr= [str UTF8String];
//char 转NSString
char ch = 's';
NSString* str = [NSString stringWithFormat:@"%c", ch];
//string 转 NSString
//OC 和 C++ 本身不能对接,需要用C做连接
NSString * aString = [NSString stringWithUTF8String:str.c_str()];
//NSString 转 string
string str = [aNSString UTF8String];