Hi,
After having spent hours trying to solve a little problem of mine, I come to you for an ultimate try to fix it.
I'm trying to link a UILabel with an IBOulet created in my class. That's something so basic you ask yourself why I need help ?
Everytime I build my application, it crashes on the label screen saying "this class is not key value coding-compliant for the key XXXX".
I know there is tons of messages speaking about that error but I really really couldn't find an answer.
Here is the code in the SecondView.h
@interface SecondView : UIViewController {
IBOutlet UILabel *string;
}
@property (nonatomic, retain) IBOutlet UILabel *string;
@end
The code in the SecondView.m (Almost nothing in there appart from the auto-generated code - which I don't paste here)
@implementation SecondView
@synthesize string;
And in my SecondView.xib :
- the UILabel is linked with the File's Owner.
- the class of the File's Owner is SecondView
So what is wrong here ????
If you guys want a closer look on my application. You can download it here (it's just a sample one).
One last say : every time I create a new application and try to link a UISomething to an IBOutlet, I get the same error. Is there a global param which can generate the error I encounter ?
Thx a lot for your kind help
Guillaume