I have a UILabel, which I made using the nib.
To my code I have added (in the appropriate places)
IBOutlet UILabel *question;
@property (nonatomic, retain) IBOutlet UILabel *question;
@synthesize question;
In the nib, I have connected the label to the file’s owner.
However, something like question.text = @"test" yields no result. Also, an NSLog showed me that (question == nil) is TRUE
What did I do wrong?
there may be more issues that is causing this problem.
I’ll list out some, may you get help
as you said, you are using your own method to construct your class
check your
initWithNibNamemethod again.you have to do
File's OwnerisQuizControlleronIdentity Inspectorquestion.text = @"test". Try to assign text onviewDidLoadmethod, not on your constructor.let me know the results