Skip to content

Instantly share code, notes, and snippets.

@lbrndnr
Created December 5, 2011 02:27
Show Gist options
  • Save lbrndnr/1432038 to your computer and use it in GitHub Desktop.
Save lbrndnr/1432038 to your computer and use it in GitHub Desktop.
Checks whether the receiver contains the specified string.
-(BOOL)containsSubstring:(NSString *)substring {
return ([self rangeOfString:substring].location != NSNotFound);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment