(转)NSString to string(支持中文)
NSString to string
const char* destDir = [filepath UTF8String];
string a=destDir;
string to NSString
NSString *s = [NSString stringWithUTF8String:str.c_str()];
参考:http://blog.csdn.net/u013317006/article/details/38276787