I am getting the following error
-[NSNull isEqualToString:]: unrecognized selector sent to instance 0x3c168090
on this line of code
cell.offerTitle.text = [voucherData objectForKey:@"offer_title"];
Could someone help me correct the problem please?
Thanks
Oliver
Is
voucherDataan NSDictionary?It’s possible there’s an
NSNullin your dictionary, and when the dictionary is trying to find the object foroffer_title, it’s running into trouble.Another possibility is that
[voucherData objectForKey:@"offer_title"]is returning[NSNull null], and the label is barfing when you try to pass that instead of a string.Try setting a breakpoint in
objc_exception_throwand read the stack trace – that will give you a much better idea of what’s going on.Added:
or