版本新特性框架(添加了版本的本地缓存功能,适应各种APP的新特性界面,集成只需几行代码,没有耦合度)

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

self.window = window;

//判断是否需要显示:(内部已经考虑版本及本地版本缓存)
BOOL canShow = [XZMCoreNewFeatureVC canShowNewFeature];

//测试代码,正式版本应该删除
canShow = YES;

if(canShow){ // 初始化新特性界面
window.rootViewController = [XZMCoreNewFeatureVC newFeatureVCWithPlayerURL:[[NSBundle mainBundle] URLForResource:@"启动视频.mp4" withExtension:nil] enterBlock:^{

NSLog(@"进入主页面");
[self enter];
} configuration:^(AVPlayerLayer *playerLayer) {

}];

}else{

[self enter];
}

[window makeKeyAndVisible];

return YES;
}