时间加减比较
2020年02月15日
作者:佚名
下面是来客网 jb51.cc 通过网络收集整理的代码片段。
来客网小编现在分享给大家,也给大家做个参考。
NSDate *update = [[NSUserDefaults standardUserDefaults] objectForKey:APP_UPDATE_TIME]; CGFloat dayDifference; if (update) { dayDifference = [[NSDate date] timeIntervalSinceDate:update]/ 60.0/60.0/24.0; } if (!update || dayDifference > 2) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"更新提示V%@",systemVersionNo] message:config[@"releaseNotes"] delegate:self cancelButtonTitle:@"稍后升级" otherButtonTitles:@"立即更新",nil]; [alert show]; }
以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。
以上是来客网为你收集整理的时间加减比较全部内容,希望文章能够帮你解决时间加减比较所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。