I make a simple clock in xcode.
For now i use a font to display hour and minutes, they are in two separate label.
How can i do for display image for time, if i don’t want use a font but one image for every number?
For time i use this:
[oreLabel setFont:[UIFont fontWithName:@"Digital-7Mono" size:250]];
NSDate *today = [[NSDate alloc] init];
dateFormatter = [[NSDateFormatter alloc] init];
[self.dateFormatter setDateFormat:@"11"];
NSString *currentTime = [self.dateFormatter stringFromDate: today];
self.oreLabel.text = currentTime;
pollingTimer = [NSTimer scheduledTimerWithTimeInterval:kPollingInterval
target:self
selector:@selector(pollTime)
userInfo:nil
repeats:YES];
[today release];
Thanks for help
I think the NSDateComponents object might be helpful to you. Maybe something like this: