get NSString first word only
objective-c
Solution
NSString *firstWord = [[language componentsSeparatedByString:@" "] objectAtIndex:0];
Problem
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.