How can I detect if a string contains a certain word? For example, I have a string below which reads:
@\"Here is my string.\"
I\'d like to know
With iOS 8 and Swift, we can use localizedCaseInsensitiveContainsString method
let string: NSString = "Café" let substring: NSString = "É" string.localizedCaseInsensitiveContainsString(substring) // true