To Check An Array contains a String (* caseInsensitive String (not as it is)) Or Not...
NSString* str;
BOOL found = NO;
for (str in [_skillsArray valueForKey:@"strValue"]) {
if ([str caseInsensitiveCompare:tempStr] == NSOrderedSame) {
found = YES;
break;
}
}
No comments:
Post a Comment