Stopwatch counting in powers of 2
问题 I am making a stopwatch in Objective-C: - (void)stopwatch { NSInteger hourInt = [hourLabel.text intValue]; NSInteger minuteInt = [minuteLabel.text intValue]; NSInteger secondInt = [secondLabel.text intValue]; if (secondInt == 59) { secondInt = 0; if (minuteInt == 59) { minuteInt = 0; if (hourInt == 23) { hourInt = 0; } else { hourInt += 1; } } else { minuteInt += 1; } } else { secondInt += 1; } NSString *hourString = [NSString stringWithFormat:@"%d", hourInt]; NSString *minuteString =