I have NSMutableArray
with data like: "John","Phillip","John","Andrea". I have also a String "John". I need to find that string in NSMutableArray
and define which index is to show other data in other arrays. In my case index is 0 and 2.
This show only first
NSInteger index = [array indexOfObject:String];