Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pragyanshis

macrumors newbie
Original poster
Sep 27, 2011
2
0
I have defined a function in appdelegate like below.

- (void) ChangeLabelText:(NSString *)SenderP
{
TeenTaalViewControllerM = [[TeenTaalViewController alloc] initWithNibName:mad:"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:mad:"Test"];



But the text of the UIlabel is not changing anyway !!!!please help !!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.