PHP
explode(“, ” , “One, Two, Three”);
Objective-C
NSArray *listItems = [@"One, Two, Three" componentsSeparatedByString:@", "];
PHP
explode(“, ” , “One, Two, Three”);
Objective-C
NSArray *listItems = [@"One, Two, Three" componentsSeparatedByString:@", "];
[myArray sortUsingSelector:@selector(caseInsensitiveCompare:)];
NSArray Class Reference -> sortedArrayUsingSelector
or:
[myArray sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];