Wednesday, June 15, 2011

How to split string into substring – xCode iPhone?

You can also split a string by a substring, using NString's componentsSeparatedByString method.
NSString *list = @"iPhone, Application, Development";
NSArray *listItems = [list componentsSeparatedByString:@", "];

No comments:

Post a Comment

Kamleshwar