您的位置:首页 > 移动开发

How to launch App Store from my iPhone application?

2010-08-11 17:14 603 查看
Thisiseasy.Justfollowthestepsbelowandyouwillbeoverinlessthenminute.

LaunchiTunesonyourMac.

Searchfortheitemyouwanttolinkto.

Right-clickorcontrol-clickontheitem’snameiniTunes,thenchoose“CopyiTunesStoreURL”fromthepop-upmenu.



ThereturnedURLisanitunes.apple.comlink.However,iPhonerequiresphobosURLsfordirectlinkingtotheAppStore.

Therefore,youmustreplaceituneswithphobosinthereturnedURL.

OpenthemodifiedURLusinganNSURLobjectandthe-[UIApplicationopenURL]method.

viewsourceprint?

1.
-(IBAction)appStoreLink{

2.

3.
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@
"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301349397&;amp;amp;amp;amp;mt=8"
]];

4.

5.
}


NowwhenyoupressbuttonlinkedwithappStoreLinkIBAction,AppStoreapplicationwillopenandyouwillseeDivineOfficeapplication.That’sall.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐