You can also split a string by a substring, using NString’s componentsSeparatedByString method.
Example from documentation:
NSString *list = @"Norman, Stanley, Fletcher";
NSArray *listItems = [list componentsSeparatedByString:@", "];
You can also split a string by a substring, using NString’s componentsSeparatedByString method.
Example from documentation:
NSString *list = @"Norman, Stanley, Fletcher";
NSArray *listItems = [list componentsSeparatedByString:@", "];