Good Day!
I want to search a specific string in the array of strings in objective c. Can somebody help me in this regard?
Thanks
Good Day!
I want to search a specific string in the array of strings in objective c. Can somebody help me in this regard?
Thanks
BOOL isTheObjectThere = [myArray containsObject: @"my string"];
or if you need to know where it is
NSUInteger indexOfTheObject = [myArray indexOfObject: @"my string"];
I strongly recommend you read the documentation on NSArray. In fact, you probably should have done that before posting your question :-)