【问题标题】:iTunes review iOS 7 without send my app to backgroundiTunes 审查 iOS 7 而不将我的应用程序发送到后台
【发布时间】:2014-08-05 14:42:40
【问题描述】:

我知道要打开 iTunes 的评分页面,我应该从我的应用程序中打开 url itms-apps://itunes.apple.com/app/idAPPID,其中 APPID 是我的应用程序的 ID。尽管此调用的结果将我的应用程序发送到后台并打开 iTunes。是否可以在不离开我的应用程序的情况下打开评分页面,例如在网络视图中?
提前致谢

【问题讨论】:

    标签: objective-c ios7 itunes review


    【解决方案1】:
    SKStoreProductViewController* spvc = SKStoreProductViewController.new;
    spvc.delegate = self; //self is the view controller to present spvc
    [spvc loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier:@(APPSTORE_ID)}
                    completionBlock:^(BOOL result, NSError *error)
                    {
                        if (result)
                            [(UIViewController*)spvc.delegate presentViewController:spvc animated:YES completion:nil];
                    }
    ];
    
    
    -(void)productViewControllerDidFinish:(SKStoreProductViewController*)viewController
    {
        [(UIViewController*)viewController.delegate dismissViewControllerAnimated:YES completion:nil];
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-24
      • 2011-07-19
      • 1970-01-01
      相关资源
      最近更新 更多