I have defined a function in appdelegate like below.
and I am calling this function from a class like below
But the text of the UIlabel is not changing anyway !!!!please help !!!
Code:
- (void) ChangeLabelText:(NSString *)SenderP
{
TeenTaalViewControllerM = [[TeenTaalViewController alloc] initWithNibName:@"TeenTaalViewController" bundle:nil];
TeenTaalViewControllerM.view.hidden= NO;
[self.TeenTaalViewControllerM.lblLoopCountM setText:SenderP];
self.TeenTaalViewControllerM.lblLoopCountM.hidden = NO;
}
and I am calling this function from a class like below
Code:
TeenTaalAppDelegate * TheAppDelegateL = [[UIApplication sharedApplication] delegate];
[TheAppDelegateL ChangeLabelText:@"Test"];
But the text of the UIlabel is not changing anyway !!!!please help !!!