So this is probably really simple but for some reason I can't figure it out. When I run the below code I can't get it to go into the if
statement even though when I go into the debugger console in xcode and I execute po [resultObject valueForKey:@"type"]
it returns 0
. What am I doing wrong? Thanks for your help!
NSManagedObject *resultObject = [qResult objectAtIndex:i];
if (([resultObject valueForKey:@"type"])== 0) {
//do something
}