Tag Archives: NSRange

Objective-C – Substring a NSString

There are 3 methods to substring a NSString.

NSLog([@"1234567890" substringFromIndex:4]);
NSLog([@"1234567890" substringToIndex:6]);
NSLog([@"1234567890" substringWithRange:NSMakeRange(3, 5)]);

  Continue reading Objective-C – Substring a NSString