Reputation: 85
i have problem with this part of code:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *loadstring1 = [defaults objectForKey:@"Save1232"];
[Label1232 setText:loadstring1];
Xcode shows to me:
no visible @interface for 'UIView' declarates the selector 'setText:'
It doesnt metter but i put it into - (void)viewDidLoad
. The problem is that i've used this before without any problems. Right now i cant. Anyone?
Upvotes: 0
Views: 409
Reputation: 1573
It looks like you've defined Label1232
as a UIView
, when it should in fact be a UILabel
.
Upvotes: 4