How can I tell if a string contains something? Something like:
if([someTextField.text containsString:@"hello"]) {
}
You could use:
if ( result && [result rangeOfString:@"hello"].location != NSNotFound ) {
// Substring found...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With