I would like to do this:
I have a dictionary like this:
[myMutableDictionary setValue:myNSNumber forKey:@"myKey"];
myNSNumber is an NSNumber.
myCell.label.text = [self.myMutableDictionary objectForkey@"myKey"];
I have an error when I assign the number stored in my dictionary to my label in myCell.
The error is:
je suis la 2011-05-02 15:01:01.264 []
-[NSCFNumber isEqualToString:]: unrecognized selector sent to instance
0x225d00 2011-05-02 15:01:01.319 []
*** Terminating app due to uncaught exception
‘NSInvalidArgumentException’, reason:
‘-[NSCFNumber isEqualToString:]:
unrecognized selector sent to instance
0x225d00’
NSNumberis not anNSStringand the text of the label needs to set to anNSString.