• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梦之奈落
博客园    首页    新随笔    联系   管理    订阅  订阅

How to launch AppStore application with request?

If you will need launch AppStore application with search request – use this example

1
2
3
4
5
NSString *str = @"itms-apps://ax.search.itunes.apple.com";
    str = [NSString stringWithFormat:@"%@/WebObjects/MZSearch.woa/wa/search?media=software&term=", str]; 
     str = [NSString stringWithFormat:@"%@3d4medical", str];
     
     [[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];



for getting reviews screen of application, you can will use this example:

1
2
3
4
5
6
7
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
    str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str]; 
    str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str];
     
    // Here is the app id from itunesconnect
     str = [NSString stringWithFormat:@"%@325180061", str];
     [[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];

for getting screen of application:

1
2
3
4
5
6
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
    str = [NSString stringWithFormat:@"%@/wa/viewSoftware?id=", str];
     
    // Here is the app id from itunesconnect
     str = [NSString stringWithFormat:@"%@325180061", str];
     [[UIApplication sharedApplication] openURL: [NSURL URLWithString:str]];
posted @ 2011-03-02 10:27  梦之奈落  阅读(363)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3