Giter Club home page Giter Club logo

xzmcorenewfeature's Introduction

XZMCoreNewFeature

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

#示例截图

##普通图片滚动新特性界面 (logo)

- (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;
}

##视频新特性界面 ###每天APP (logo)

###美团外卖APP (logo)

- (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;
}

特性说明:

###1.封装并简化了版本新特性启动视图! ###2.支持视频播放新特性 ###3.添加了版本的本地缓存功能 ###4.集成简单,使用方便,没有耦合度 ###5.支持block回调。 ###5.喜欢你就Star一下吧,感谢你的支持! ###6.本框架来自Charlin作者的框架上做了一些改动与增加新的内容,感谢Charlin作者!

xzmcorenewfeature's People

Contributors

xiezhongmin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.