About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

snippet: objc: string contains strings[]

objective-c snippet that checks if your input string contains any of the string in the array

if ([ @[@"first" , @"second", @"third"] indexOfObject:inputString] != NSNotFound) {
// contains
}