检测的iPhone应用程序版本更新? [英] Detecting iPhone app version update?

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

问题描述

我想确定什么时候都可以在AppStore上我的应用程序的新版本,并显示了某种形式的通知,当发生这种情况的用户 - 也许是一个UIAlertView中或类似 - 并想知道是否有人知道任何pre的 - 设计框架,这样做呢?我发现通过iPhone SDK中提供的StoreKit但它似乎只返回应用程序的名称,而不是版本号,所以是没有用的我。

I'd like to determine when new versions of my app are available on the Appstore and display some form of notification to the user when this happens - perhaps a UIAlertView or similar - and wondered whether anybody knew of any pre-designed frameworks for doing this? I found the StoreKit provided by iPhone SDK but it seems to only return application names, not version numbers, so is of no use to me.

任何帮助非常AP preciated。

Any help greatly appreciated.

谢谢!

推荐答案

我不认为有针对此类问题的prefabricated框架。
至少我无法找到一个当我在处理该主题。

I don't think that there is a prefabricated framework for that kind of issue. At least I couldn't find one when i was dealing with that topic.

我所做的是相当容易的(前提是您可以访问任何类型的网络服务器在那里你能上传文件)

What I did was fairly easy (provided that you have access to any kind of webserver where you're able to upload files)

我只是创造了两件事情的文本文件在里面。

I simply created a text file with two things in it.

1)可用的最最新版本的版本号
2)正被显示给用户(如果文本他的版本已过期的)

1) the version number of the most up to date version available 2) a text that is being displayed to the user (in case his version is out of date)

在启动时(其实我做的每一个3TH启动和不超过每天一次以上)我下载txt文件,读取第一行,提取的版本,比较它的应用程序的当前版本上运行用户divice。如果版本过时我再读取第二行出的文本文件,并在UIAlertView中显示出来。

on startup (actually I do it on every 3th startup and not more than once per day) i download the txt file, read the first line, extract the version, compare it to the current version of the app that is running on the users divice. if the version is out of date i then read the second line out of the text file and display it in an UIAlertView.

我希望我能帮助
结果
* SAM

I hope I could help
*sam

这篇关于检测的iPhone应用程序版本更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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