I'm setting a UILabel but is returning null.
.h file:
.m file :
I check the value of label and is null. Can any body tell me why is null? Can anybody tellme what I'm doing wrong?
.h file:
Code:
@property (retain,nonatomic) UILabel *label;
.m file :
Code:
@synthesize label;
- (void)viewDidLoad
{
self.label.text=@"some text";
[super viewDidLoad];
}
I check the value of label and is null. Can any body tell me why is null? Can anybody tellme what I'm doing wrong?
Last edited by a moderator: