Reputation: 3074
I'm trying to convert an NSString to a single char. When I write [[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator], I get @",". How can I convert this to ','?
[[NSLocale] currentLocale] objectForKey:NSLocaleDecimalSeparator]
@","
','
Thank you!
Upvotes: 3
Views: 3721
Reputation: 421988
unichar character = [myNSString characterAtIndex:0];
Upvotes: 4