<p>Is there anything similar to an <code>indexOf</code> function in the NSString objects?</p>

Use
```
-[NSString rangeOfString:]
```
:
```
```
- (NSRange)rangeOfString:(NSString *)aString;
```
```
Finds and returns the range of the first occurrence of a given string within the receiver.