Source Code : 
NSArrayexplode(NSString *separatorNSString *text){
    return [
text componentsSeparatedByString:separator];
}
 
//Example
 
NSArray *arr explode( @", " , @"One, Two, Three");  

[Login or Register to remove this advertisement]

 
//Result:   ["One", "Two", "Three"] 
Xcode Reviewed by Xcode on . explode function NSArray* explode(NSString *separator, NSString *text){ return ; } //Example NSArray *arr = explode( @", " , @"One, Two, Three"); //Result: Rating: 5