來源:官方Q&A 1629
- Launch iTunes on your computer.
- Search for the item you want to link to.
- Right-click or control-click on the item's name in iTunes, then choose "Copy iTunes Store URL" from the pop-up menu.
- Open the modified URL using an
NSURL
object and the-[UIApplication openURL]
method.
簡單說就是從iTunes內的App Store內找到要連結的APP.
從APP頁面上在APP的名稱上按右鍵,選"拷貝連結".
在程式中建立NSURL物件,使用拷貝的連結做為內容,
再使用
-[UIApplication openURL]
啟動.
沒有留言:
張貼留言