Skip to content

Instantly share code, notes, and snippets.

@Duraiamuthan
Created September 22, 2013 06:03
Show Gist options
  • Save Duraiamuthan/6657126 to your computer and use it in GitHub Desktop.
Save Duraiamuthan/6657126 to your computer and use it in GitHub Desktop.
Objective C find if a text exists in string
-(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