I have a function in my code where I want to find out if the content of UITextView
(resultText.text) is the same as one of the ticket numbers in the array _feeditems
.
Here is the function.
-(void) findContact
{
for (Tickets *tick in _feedItems){
if ((resultText.text == tick.ticketNumber)){
status.text = @"Match found";}
else {
status.text = @"Match nof found";}
}
}
Need guidance on this one. Thank You.