How might I check if a particular NSString is presnet in an NSArray?
You can do it like,
NSArray* yourArray = [NSArray arrayWithObjects: @"Str1", @"Str2", @"Str3", nil]; if ( [yourArray containsObject: yourStringToFind] ) { // do found } else { // do not found }
2.1m questions
2.1m answers
60 comments
57.0k users