【发布时间】:2017-03-18 13:46:58
【问题描述】:
我最小化到托盘我的应用程序,然后更改时区,然后打开应用程序 NSTimeZone 返回时区的旧值。 如果我最小化到托盘并再次打开时区返回新值。我该如何解决?
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(reloadVC)
name:UIApplicationWillEnterForegroundNotification
object:nil];
-(void) reloadVC{
NSTimeZone *currentTimeZone = [NSTimeZone localTimeZone];
NSLog(@"%@", currentTimeZone);
}
【问题讨论】: