Monday, November 16, 2009

substring in objective c

NSRange firstRange = [fullString rangeOfString:@"lookFor"];

//log the firstRange.location and firstRange.length and see whats that..

NSString *newStr = [[fullString substringFromIndex:startposition] substringToIndex:endposition];

want to see more.. click here

No comments:

Post a Comment