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

Total Post:17

Points:119
Posted on    October-04-2015 11:52 PM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 440  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:213

Points:1635
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