Why won’t the UILabel: “lbl” update on the iPhone?
…
from within a method:
myTimer =[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(displayDataTimer) userInfo:nil repeats:YES];
…
-(void) displayDataTimer{
NSString *temp = [textField1 text];
[lbl setText:[NSString stringWithFormat:@"%d %d", j, genValue]];
//[self.view setNeedsDisplay:YES];
j++;
}
thx
Make sure your method is firing and you have set an Outlet to that label (named lbl) and that it is wired up and then: