To use substring in IOS using Objective-C you can use the snippet below.

Sample Objective-C

NSString *myString = @"https://codesnippets.fesslersoft.de";
NSString *myNewString = [myString substringFromIndex:7]; //myNewString will be "codesnippets.fesslersoft.de"

3 thought on “How to use substring in IOS using Objective-C”

Leave a Reply