如何将NSString转换为char?

时间:2009-08-30 21:00:31

标签: nsstring char

我正在尝试将NSString转换为单个char。当我写[[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator]时,我得到@","。如何将其转换为','

谢谢!

1 个答案:

答案 0 :(得分:4)

unichar character = [myNSString characterAtIndex:0];