NSString search whole text for another string
I would like to search for an NSString in another NSString, such that the result is found even if the second one does not start with the first one, for example: eg: I have a search string "st". I look in the following records to see if any of the below contains this search string, all of them should return a good result, because all of them have "st". Restaurant stable Kirsten At the moment I am doing the following: NSComparisonResult result = [selectedString compare:searchText options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [searchText length])]; This works