- (void)showGuiView
{
// 取得当前版本号
NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
// 沙盒版本号
NSString *lastVersion = [[NSUserDefaults standardUserDefaults] stringForKey:@"CFBundleShortVersionString"];
// 判断版本号是否相等
if (![currentVersion isEqualToString:lastVersion]) {
PFGuideView *guideView = [PFGuideView showGuideView];
guideView.frame = self.window.bounds;
[self.window addSubview:guideView];
// 写入沙盒
[[NSUserDefaults standardUserDefaults] setObject:currentVersion forKey:@"CFBundleShortVersionString"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}