I am trying to track this loop like the time Sec min and Hr. But the display (label) print out this 59,59,59
instead of starting from 0
and going on. So I would like to see the numbers are incrementing live. How do I do that?
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
int i;
for(i=0; i<60; i++)
{
for (int j=0; j<60;j++){
for(int d=0;d<60;d++){
self.timer.text =[NSString stringWithFormat: @"%i, %i, %i", i,j,d];
}
}
}
// Do any additional setup after loading the view, typically from a
}