Does a NSString contain a substring ?
Рубрики: iPhone on Jan.15, 2010
Here is a little tip on how to tell if a string contains another string, using the underused data type NSRange. NSRange gives the starting location and the length of a given value, and is often used with arrays and strings. On this occasion we will use it to find the range of a substring [...]
