Hi,
Is the a way to get the NSRange of an NSString in an NSString?
Hi,
Is the a way to get the NSRange of an NSString in an NSString?
Did you look in the documentation?
NSString has the following method:
- (NSRange)rangeOfString:(NSString *)aString
The NSString class reference at developer.apple.com says of this method:
Finds and returns the range of the first occurrence of a given string within the receiver.
You're making this up, right? Or is there some hidden clue in your question that makes rangeOfString:
the wrong answer?