Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

ObjC: Please explain Predicate

I have n exception in this code (which I did not write):

this class is not key value coding-compliant for the key 'questionGuid'.

I suspect the object i the wrong type, but need to understand the code a bit.

Can someone explain it to me?



 NSPredicate* predicate = [NSPredicate predicateWithFormat:@"questionGuid LIKE[c] %@ ", [_result question].guid];

QuestionAsked* questionAsked = [[_quizEngine.theme.questionAskedArr filteredArrayUsingPredicate:predicate] objectAtIndex:0];

[questionAsked updateResultArray:[submitTapDate timeIntervalSince1970] isCorrect:_result.isAnswerCorrect];
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Thanks, I will read this over.