A really simple question here.
I know how do you check if an NSString exists in an array and I do it like this:
if ([dataArray containsObject:paymentMethodString])
But apart from checking if it exists or not I would like to find out the index of corresponding element in the array. How do you do that in Objective-C?
You should use