I am trying to figure out how to get a range of a substring within a string. By range I mean where the substring begins and where it ends. So if I have following string exam
Use the built in method part of NSString:
NSString
[testString rangeOfString:@"hello how are you doing"]
Documentation: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/doc/uid/20000154-rangeOfString_