I am new to Objective-C and teaching myself. Right now I am trying to develop an interactive clock, but now I am stuck so I need your expertise. Right now it's formatted into decimals to the 2nd place. I was wondering if it was possible to format it to a colon instead of a decimal. Or am I just approaching this problem wrong. :(
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if(object == _knobControl && [keyPath isEqualToString:@"value"]) {
self.valueLabel.text = [NSString stringWithFormat:@"%.2f", _knobControl.value];
}
}