Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Toreddo

macrumors member
Original poster
Jul 18, 2009
40
0
Hey Guys,

I have a view with a label on it. In my .h file i have
Code:
@interface NewAccount : UIViewController {
	UILabel *statusLabel;
}
@property(nonatomic, assign) IBOutlet UILabel *statusLabel;

and of course i have this in my .m:
Code:
@synthesize statusLabel;
Now, everything runs fine when i run this, i can see the view and all, no errors. But when i try to connect the label i have with the IBOutlet and run the application it crashes immediately when i try to load the view, without any error messages.

I tried doing the same with buttons on the same view and this also bugs.

Am i missing something?

EDIT: I found i'm having this error
this class is not key value coding-compliant for the key statusLabel. :S

EDIT 2:
Solved it:https://forums.macrumors.com/threads/556417/

Thanks,
Chris
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.