Nsstring转换成ascii码问题
比如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]跟楼上一样