1, problem Description: There is a need in the project, need to directly bring up the current application in the AppStore of the corresponding download page;
2, the process of solving the problem:
① can be Nsapp interface to call AppStore program, but did not find the interface can be transmitted parameters, does not meet the requirements;
② found that you can jump directly from the itunes page to the app's download page in AppStore
③ then look at the source of the Web page, find the action corresponding URL is https://itunes.apple.com/cn/app/tong-hua-shun-gu-piao-chao-gu/id1057161846?mt=12
④ to modify the https: protocol to Macappstore:
⑤ Open with command-line tools
3, the final code in the program:
1 nsstring *command = @ "Open macappstores://itunes.apple.com/cn/app/ tong-hua-shun-gu-piao-chao-gu/id1057161846?mt=12";//url can be viewed in the itunes download page of the app
2 system ([command utf8string]);
Mac App opens the corresponding download page in AppStore