Hi everybody. I'm a beginneri iPhone developer. My code is the following:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
displayLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 20, 230, 40)];
[self.view addSubview:displayLabel];
}
return self;
}
//
- (void)viewDidLoad {
[super viewDidLoad];
displayLabel.text = @"abc";
}
I want to change the label text in viewDidLoad methond,but it can't change label text.
I hope i explained my scenario. Sorry for my English. Greetings, dy.