(转)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

posted on 2015-08-19 21:09  wantnon  阅读(235)  评论(0编辑  收藏  举报

导航