NSString category to test the presence of a given substring.
Starting with OS X 10.10 and iOS 8, NSString now offers a containsString: convenience method. The vt_containsSubstring: method is compatible with earlier versions, and is slightly more customizable with its options parameter.
pod 'NSString+VTContainsSubstring'NSString *string = @"I like cakes.";
[string vt_containsSubstring:@"cake"]; // = YES
[string vt_containsSubstring:@"Cake" options:NSCaseInsensitiveSearch]; // = YESNSString+VTContainsSubstring was created by Vincent Tourraine.
NSString+VTContainsSubstring is available under the MIT license. See the LICENSE file for more info.