I would like to get notified when ipad’s date-time settings is changed. Is there any way for that?.
I am using NSDateFormatter to find whether iPad/iphone time mode is 12 or 24 hr format. NSDateFormatter is seems to take lots of time( seen in time profiling). So I would like to check use it only when settings is changed.
You can do it using two ways:
- (void)applicationSignificantTimeChange:(UIApplication *)applicationin your app delegate.Add a observer for
UIApplicationSignificantTimeChangeNotification[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(timeChanged:) name:UIApplicationSignificantTimeChangeNotification object:nil];For more check UIApplicationDelegate_Protocol