Obtain the version of an iOS app from the appstore.
An app in IOS is created. In normal cases, the appstore prompts an update. However, if you do not push the app or open the appstore, you do not know that there is a new version, A version update reminder is required. When a new version is available on the appstore, you are prompted to update the version. The key is how to obtain the version information on the appstore, which can be queried through the rest interface provided by Apple. The rest interface is as follows:
Http://itunes.apple.com/lookup? Id = appid;
You can use your own appid to replace the ID content to get a JSON content. The content is clear and you can see it at a Glance. There is a version information and the corresponding update information, APP address.
By the way, you can obtain the version information of this product.
Nsstring* Thisversion = [[Nsbundle Mainbundle] Objectforinfodictionarykey: (Nsstring*)Kcfbundleversionkey];
You can refer to the followingCode
Https://github.com/jacobsologub/appdate
Go to the appstore product page and getTrackviewurl, jump to the past in the following way.
Nsurl* Url = [Nsurl Urlwithstring: Itunesurl]; //Itunesurl =Trackviewurl content
[[Uiapplication Sharedapplication]Openurl: Url];