I have a NSString
which contains multiple (thousand) names (forenames and surnames), and I would like the opportunity to input a name (forename or surname or both) in to a UITextView
, and then check if the name is on the list.
Let's find a surname!
for (NamesString *items in _feedArray){
if ([nameText.text isEqualToString: items.surname]){
NSLog(@"BINGO");
}else{
NSLog(@"NOPE");
}
}
I always get NSLog(@"NOPE")
.