I'm setting a UILabel to a value stored in as a NSNumber. If I do this
foo.label.text = [bar stringValue];
then I get a NSInvalidArgumentException
However if I cast by doing:
foo.label.text = (NSString *)bar;
then things work ok.
Can anyone explain why this could be the case?