How to find whether an item is in NSArray or not ?
Hi, Sometimes you may need to find/search a particular item in NSArray. How can you find whether a particular item is present in NSArray or not? Look at the code below. Here ‘yourArray is your NSArray and ‘containsObject’ returns either TRUE or FALSE and it get stored in ‘testFlag’. 🙂