Bartek Woźniak
Bartek Woźniak

Reputation: 85

Xcode 5 - iOS Error with no visible interface

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

Answers (1)

Stefan Fisk
Stefan Fisk

Reputation: 1573

It looks like you've defined Label1232 as a UIView, when it should in fact be a UILabel.

Upvotes: 4

Related Questions