 <p>Improve your question , but see below answer for your question</p> <pre><code> NSString *string = @"This is the main stringsss which needs to be searched for some text the texts can be any big. let us see"; if ([string rangeOfString:@"."].location == NSNotFound) { NSLog(@"string does not contains"); } else { NSLog(@"string contains !"); } </code></pre>