Are there anything similar to an indexOf
function in the NSString objects?
views:
3922answers:
1
+12
A:
Use -[NSString rangeOfString:]
:
- (NSRange)rangeOfString:(NSString *)aString;
Finds and returns the range of the first occurrence of a given string within the receiver.
Airsource Ltd
2008-11-02 03:13:59