I have defined a function in appdelegate like below.
- (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
TeenTaalAppDelegate * TheAppDelegateL = [[UIApplication sharedApplication] delegate];
[TheAppDelegateL ChangeLabelText
"Test"];
But the text of the UIlabel is not changing anyway !!!!please help !!!
- (void) ChangeLabelText
{
TeenTaalViewControllerM = [[TeenTaalViewController alloc] initWithNibName
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
TeenTaalAppDelegate * TheAppDelegateL = [[UIApplication sharedApplication] delegate];
[TheAppDelegateL ChangeLabelText
But the text of the UIlabel is not changing anyway !!!!please help !!!