I am able to display the current time on my iPad application using the code,
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setTimeStyle: NSDateFormatterShortStyle];
NSString *currentTime = [dateFormatter stringFromDate: [NSDate date]];
timeLabel.text = currentTime;
But this gives the time only when the application is loaded. How do i get the time to keep running? Like a digital clock.
Use this:
Selector method would be like this: