I want to get current device time in my app,and continuously update that time when my device time is update.i follow that code
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"dd/mm/yy hh:mm"];
[dateFormatter setTimeStyle:NSDateFormatterShortStyle];
NSString* todayString = [dateFormatter stringFromDate:[NSDate date]];
I get the current device time,but its not update automatically when user use my app. what can i do.