Objective-c – NSString tokenize in Objective-C

cocoaobjective-ctokenize

What is the best way to tokenize/split a NSString in Objective-C?

Best Solution

Found this at http://borkware.com/quickies/one?topic=NSString (useful link):

NSString *string = @"oop:ack:bork:greeble:ponies";
NSArray *chunks = [string componentsSeparatedByString: @":"];

Hope this helps!

Adam