Hi Guys,
Ok, the problem is that when my app runs on the simulator it seems to work fine. On the device, however it does not update all the labels. I think the error is somewhere here:
- (IBAction)buttonclick1 {
self.startDate = [NSDate date];
double value = [self Level];
double value2 = [self Level2];
if ((value2 - value) >= 3.0) {
ifWork.text = @"DONE!";
ifWork.textColor = [UIColor yellowColor];
float noSeconds = (float) [self.startDate timeIntervalSinceNow];
}
}
I am new to this game. What I am looking for, is when the button is pressed, it times how long it takes for an event to happen. I then would like to use this time in calculations.
I know the IF statement is correct as it works on the simulator. However on the device, when value and value2 differ by 3 and then the button is pressed, nothing happens (the label ifWork doesn't change!).
Any help would be much appreciated,
Stu