I am having this NSString
, that gives me the user language .
NSString * language= @"English (America) " ;
I need to get from it ONLY the first word- which is the language . I know how to find space, but could not find a simple way to get only the first word.
ThAnks.
NSString *firstWord = [[language componentsSeparatedByString:@" "] objectAtIndex:0];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With