Is there any way to split strings in objective c into arrays? I mean like this - input string Yes:0:42:value into an array of (Yes,0,42,value)?
Try this:
NSString *testString= @"It's a rainy day"; NSArray *array = [testString componentsSeparatedByString:@" "];