Tuesday, 8 April 2014

Search string in array (objective-C)

//Check out below lines of code:


BOOL isObjectPresent = [yourArray containsObject: @"yourString"];
NSUInteger index = [yourArray indexOfObject: @"yourString"];