Created
September 22, 2013 06:03
-
-
Save Duraiamuthan/6657126 to your computer and use it in GitHub Desktop.
Objective C find if a text exists in string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(BOOL)Contains:(NSString *)StrSearchTerm on:(NSString *)StrText | |
{ | |
return [StrText rangeOfString:StrSearchTerm options:NSCaseInsensitiveSearch].location==NSNotFound?FALSE:TRUE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment