Latest 1.0.0
Homepage https://github.com/xueyongwei/XYWAppVersionHelper
License MIT
Platforms ios 8.0
Authors

使用场景

  1. 应用版本兼容问题
  2. 启动广告显示
  3. 版本升级

使用方法

  1. 直接下载拖入文件夹到工程
  2. cocapods 添加 pod 'XYWAppVersionHelper'

示例代码


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    ApplaunchType type = [XYWAppVersionHelper appThislaunchType];
    switch (type) {
        case ApplaunchTypeNormal:
            NSLog(@"正常启动");
            break;
        case ApplaunchTypeThisVersionFirstLabch:
            NSLog(@"新版本启动");
            break;
        case ApplaunchTypeAfterInstallFirstLabch:
            NSLog(@"安装后第一次启动");
            break;
        case ApplaunchTypeVersionFallback:
            NSLog(@"版本回退了!");
            break;
        default:
            break;
    }
    return YES;
}

Latest podspec

{
    "name": "XYWAppVersionHelper",
    "version": "1.0.0",
    "summary": "XYWAppVersionHelper is a helper class  -bad english",
    "description": "a version manager,if you want to do something when app lanuch ,first launch this version,first launch after install.",
    "homepage": "https://github.com/xueyongwei/XYWAppVersionHelper",
    "license": "MIT",
    "authors": {
        "xueyognwei": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/xueyongwei/XYWAppVersionHelper.git",
        "tag": "1.0.0"
    },
    "source_files": "XYWAppVersionHelper/XYWVersionManager/*.{h,m}"
}

Pin It on Pinterest

Share This