Home > DeveloperSection > Forums > In Obj-C indexOf function of NSString
Derek Honeybun
Derek Honeybun

Total Post:17

Posted on    October-04-2015 11:52 PM

 iPhone iPhone  Ios  Objective C 

 1 Reply(s)
 689  View(s)
Rate this:
Can any one who tell me, is Obj-C has anything similar to indexOf function of NSString objects?

Tarun Kumar

Total Post:214

Posted on    October-05-2015 11:25 PM

Yes, Obj-C has another method here is the method:

Use -[NSString rangeOfString:]:
- (NSRange)rangeOfString:(NSString *) string;


Don't want to miss updates? Please click the below button!

Follow MindStick