---
title: "In Obj-C indexOf function of NSString"  
description: "In Obj-C indexOf function of NSString"  
author: "Anonymous User"  
published: 2015-10-04  
updated: 2015-10-05  
canonical: https://www.mindstick.com/forum/33491/in-obj-c-indexof-function-of-nsstring  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# In Obj-C indexOf function of NSString

Can any one who tell me, is Obj-C has anything similar to indexOf [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) of NSString [objects](https://www.mindstick.com/forum/145447/what-are-objects)?

## Replies

### Reply by Tarun Kumar

Yes, Obj-C has another method here is the method:

```
Use -[NSString rangeOfString:]:- (NSRange)rangeOfString:(NSString *) string;
```


---

Original Source: https://www.mindstick.com/forum/33491/in-obj-c-indexof-function-of-nsstring

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
