In Objective-C the code to check for a substring in an NSString is:
Objective-C
NSString
NSString *string = @\"hello Swift\"; NSRange textRange =[strin
Check if it contains 'Hello'
let s = "Hello World" if s.rangeOfString("Hello") != nil { print("Yes it contains 'Hello'") }