检查更新可用的 App Store [英] Check Update Available App Store

查看:23
本文介绍了检查更新可用的 App Store的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否存在某种方式来检查 App Store 上是否存在可用的更新??

Anyone known if exist some way to check if exist one update available on App Store??

我想通知用户我的应用程序的新更新开始...

I want notify to user the new updates on my application begins...

谢谢

推荐答案

只需使用 ATAppUpdater,它是 1 行,线程安全且快速.如果您想跟踪用户操作,它还具有委托方法.下面是一个例子:

Just use ATAppUpdater, it is 1 line, thread-safe and fast. It also have delegate methods if you would like to track user action. Here is an example:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[ATAppUpdater sharedUpdater] showUpdateWithConfirmation]; // 1 line of code
    /////////////////////// OR ///////////////////////
    [[ATAppUpdater sharedUpdater] showUpdateWithForce]; // 1 line of code

   return YES;
}

委托方法:

- (void)appUpdaterDidShowUpdateDialog;
- (void)appUpdaterUserDidLaunchAppStore;
- (void)appUpdaterUserDidCancel;

这篇关于检查更新可用的 App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆