I am using an IF
statement to see if the valueForKey is @"T" in my NSDictionary
, however i don't think i am accessing the NSDictionary
correctly because even when i know the valueForKey is T is never enters the IF
statement.
This is what my code looks like:
if ([[getObj valueForKey:@"hasSetID"] isEqualToString:@"T"]) {
[arrayOfButtonImages addObject:firstButtonImage];
}
So this if statment is never entered even if it is T.
If any one knows how to test the valueforkey of a NSDictionary
it would be greatly appreciated if you could help me with your insight.