In Objective-C the code to check for a substring in an NSString is:
Objective-C
NSString
NSString *string = @\"hello Swift\"; NSRange textRange =[strin
In iOS 8 and newer, you can use these two NSString methods:
@availability(iOS, introduced=8.0) func containsString(aString: String) -> Bool @availability(iOS, introduced=8.0) func localizedCaseInsensitiveContainsString(aString: String) -> Bool