标签: nsstring char
我正在尝试将NSString转换为单个char。当我写[[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator]时,我得到@","。如何将其转换为','?
[[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator]
@","
','
谢谢!
答案 0 :(得分:4)
unichar character = [myNSString characterAtIndex:0];