You can also split a string by a substring, using NString’s componentsSeparatedByString method.
NSString *list = @”amal, arun, balaji, dhina, guru, hari, kumar,mahes”;
NSArray *listItems = [list componentsSeparatedByString:@", "];
NSString *list = @”amal, arun, balaji, dhina, guru, hari, kumar,mahes”;
NSArray *listItems = [list componentsSeparatedByString:@", "];
No comments:
Post a Comment