0

有没有一种方法,我们可以在 iPhone 的主屏幕上显示一个应用程序图标,然后点击该应用程序以杂志作为参数打开 Newsstand 应用程序?

4

1 回答 1

0

You can use custom URLs in ios. Check out Apple's documentation here

To give you some brief: You app can register for custom url schema (e.g. yourapp://whatever_you_want.com?param1=value@param2=value

To communicate with an app using a custom URL, create an NSURL object with some properly formatted content and pass that object to the openURL: method of the shared UIApplication object. The openURL: method launches the app that registered to receive URLs of that type and passes it the URL. At that point, control passes to the new app.

于 2012-05-19T15:26:05.050 回答