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 }
1.4m articles
1.4m replys
5 comments
57.0k users