Latest 1.1.1
Homepage https://github.com/zachariahlee/ZHVersionManager
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

版本管理,和App Store比对。

使用时只需传入APP在App Store的APP ID即可

[ZHVersionManager checkAppVersionWithAppID:@"1329918420" completionHandler:^(BOOL isNeedUpdate, VersionResponse *response) {
    if (isNeedUpdate) {
        UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:response.releaseNotes preferredStyle:UIAlertControllerStyleAlert];
        UIAlertAction *action1 = [UIAlertAction actionWithTitle:@"稍后提示" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {

        }];
        [alert addAction:action1];
        UIAlertAction *action2 = [UIAlertAction actionWithTitle:@"立即更新" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
            [[ZHVersionManager defaultManager] updateApp];
        }];
        [alert addAction:action2];
        [self presentViewController:alert animated:YES completion:nil];
    }
}];

Latest podspec

{
    "name": "ZHVersionManager",
    "version": "1.1.1",
    "summary": "u7248u672cu7ba1u7406",
    "description": "u7248u672cu7ba1u7406uff0cu548cApp Storeu6bd4u5bf9u3002",
    "homepage": "https://github.com/zachariahlee/ZHVersionManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zachariahlee": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zachariahlee/ZHVersionManager.git",
        "tag": "1.1.1"
    },
    "source_files": "Pod/Classes/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This