GithubHelp home page GithubHelp logo

devkou / aycheckversion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ayjk/aycheckversion

0.0 2.0 0.0 29 KB

Check version from AppStore / 从AppStore检查更新

License: MIT License

Ruby 2.90% Objective-C 97.10%

aycheckversion's Introduction

AYCheckVersion

LICENSE  SUPPORT  CocoaPods Version BLOG 

我的博客中有详尽的实现过程和相关说明: iOS利用iTunesLookup检查更新 中文介绍

This is a utility class to check version from AppStore.

两个按钮情况 三个按钮情况

Installtion

The preferred way of installtion is via CocoaPods

pod 'AYCheckVersion'

and run pod install or pod update. It will install the most recent version of AYCheckVersion.

After that import <AYCheckVersion/AYCheckVersion.h>.

Use AYCheckVersion

Usage

AYCheckManager *checkManger = [AYCheckManager sharedCheckManager];
[checkManger checkVersion];

start check version with default param.

- (void)checkVersion;

start check version with AlertTitle,NextTimeTitle,ConfimTitle.

- (void)checkVersionWithAlertTitle:(NSString *)alertTitle nextTimeTitle:(NSString *)nextTimeTitle confimTitle:(NSString *)confimTitle;

start check version with AlertTitle,NextTimeTitle,ConfimTitle,skipVersionTitle.

- (void)checkVersionWithAlertTitle:(NSString *)alertTitle nextTimeTitle:(NSString *)nextTimeTitle confimTitle:(NSString *)confimTitle skipVersionTitle:(NSString *)skipVersionTitle;

If you want open AppStore inside your App, set openAPPStoreInsideAPP

checkManger.openAPPStoreInsideAPP = YES;

If you can't get the update info of your App. Set countryAbbreviation of the sale area. like countryAbbreviation = @"cn",countryAbbreviation = @"us".General, you don't need to set this property

checkManger.countryAbbreviation = @"cn";

set debugEnable to print the info in Debug arae

checkManger.debugEnable = YES;

Changelog

v 1.1.0 fixed bug

v 1.0.1 add debug switch, print the info in Debug arae

v 1.0.0 first version

Licence

AYCheckVersion is provided under the MIT license. See LICENSE file for details.

=================

中文介绍

这是一个从AppStore检测最新版本的工具类。

安装

推荐使用CocoaPods进行安装。

pod 'AYCheckVersion'

然后输入 pod install or pod update。将会安装最新版本的AYCheckVersion。

最后导入头文件<AYCheckVersion/AYCheckVersion.h>

用法

AYCheckManager *checkManger = [AYCheckManager sharedCheckManager];
[checkManger checkVersion];

使用默认属性进行版本的检测。

- (void)checkVersion;

自定义警示框的标题,下次提示的标题,立即更新的标题。

- (void)checkVersionWithAlertTitle:(NSString *)alertTitle nextTimeTitle:(NSString *)nextTimeTitle confimTitle:(NSString *)confimTitle;

自定义警示框的标题,下次提示的标题,立即更新的标题,跳过该版本的标题。

- (void)checkVersionWithAlertTitle:(NSString *)alertTitle nextTimeTitle:(NSString *)nextTimeTitle confimTitle:(NSString *)confimTitle skipVersionTitle:(NSString *)skipVersionTitle;

如果你想在当前应用中以模态视图的形式打开AppStore,请设置openAPPStoreInsideAPP,默认从应用跳转出去到AppStore。

checkManger.openAPPStoreInsideAPP = YES;

如果你无法检测到你的App的最新版。请设置你应用的销售地区,如:countryAbbreviation = @"cn",countryAbbreviation = @"us"。通常情况下,你不需要设置这个属性。

checkManger.countryAbbreviation = @"cn";

设置debugEnable来输出更新信息

checkManger.debugEnable = YES;

版本更新

v 1.1.0 修复因项目个别version问题导致的bug

v 1.0.1 添加debug开关,输出当前更新信息

v 1.0.0 首次提交

许可证

AYCheckVersion 使用 MIT 许可证,详情见 LICENSE 文件。

aycheckversion's People

Contributors

ayjk avatar

Watchers

 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.