介绍:
易用的版本新特性框架(添加了版本的本地缓存功能,适应各种APP的新特性界面,集成只需几行代码,没有耦合度)测试环境:
编译测试,测试环境:Xcode7 ios9。
效果图:

使用方法:
- (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 newFeatureVCWithImageNames:@[@"new1",@"new2",@"new3",@"new4"] enterBlock:^{
NSLog(@"进入主页面");
[self enter];
} configuration:^(UIButton *enterButton) { // 配置进入按钮
[enterButton setBackgroundImage:[UIImage imageNamed:@"btn_nor"] forState:UIControlStateNormal];
[enterButton setBackgroundImage:[UIImage imageNamed:@"btn_pressed"] forState:UIControlStateHighlighted];
enterButton.bounds = CGRectMake(0, 0, 120, 40);
enterButton.center = CGPointMake(KScreenW * 0.5, KScreenH* 0.85);
}];
}else{
[self enter];
}
[window makeKeyAndVisible];
return YES;
}
https://mp.weixin.qq.com/s/yTUU9u71Y3RVSBmduiX_Ng
















