changing of label's text from appdelegate not working
i have created a function in controllerappdelegate.m like below
- (void) ChangeLabelText:(NSString *)SenderP
{
TeenTaalViewControllerM = [[TeenTaalViewController alloc] initWithNibName:@"TeenTaalViewController" bundle:nil];
TeenTaalViewControllerM.view.hidden= NO;
[self.TeenTaalViewControllerM.lblLoopCountM setText:@"testing ..."];
self.TeenTaalViewControllerM.lblLoopCountM.hidden = NO;
}
note:- i wanna change the text of label from another view .For that only i have declared this in controllerappdelegate.
i am calling this function from another view like below
ControllerApp开发者_运维百科Delegate * TheAppDelegateL = [[UIApplication sharedApplication] delegate];
[TheAppDelegateL ChangeLabelText:LoopCountTextL];
The function is getting called but the label's text is not changing .Please Help
Thanks in advance
maybe aViewControllerM is nil .
精彩评论