We can get substring value from NSString as per the below example. Let us say If I want to get a value from the NSString
@"hello iOS" and the return value I want is @"iOS".NSString *foo = @"hello iOS";
NSString *value = [foo substringWithRange:NSMakeRange(6, 3)];