比如NSString * str=@"12345678";这个字符串怎么转换成ascii码啊
------解决方案--------------------
参考https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.htmlGetting C Strings部分。
cStringUsingEncoding:或者UTF8String
------解决方案--------------------
const char *pAscii = str.UTF8String;
------解决方案--------------------
const char *ascii =[str UTF8String]跟楼上一样