Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在iOS7中可能的应用程序内进行评级和审核?_Ios_Appirater - Fatal编程技术网

在iOS7中可能的应用程序内进行评级和审核?

在iOS7中可能的应用程序内进行评级和审核?,ios,appirater,Ios,Appirater,我听说iOS7允许用户对应用程序中的应用程序进行评级和审查,从而避免了重定向到appstore并离开应用程序的需要。到目前为止,我只发现了中提到的itunes中rate功能的URL链接的差异,但没有发现如何留在应用程序中 我正在我的应用程序中使用Appirator,并集成了新的url,应用程序将转到appstore进行评分/审核 有人能告诉我这个新功能是否存在以及如何实现吗?我想您正在寻找SKProductViewController 您可以使用以下代码呈现SKProductViewContro

我听说iOS7允许用户对应用程序中的应用程序进行评级和审查,从而避免了重定向到appstore并离开应用程序的需要。到目前为止,我只发现了中提到的itunes中rate功能的URL链接的差异,但没有发现如何留在应用程序中

我正在我的应用程序中使用Appirator,并集成了新的url,应用程序将转到appstore进行评分/审核


有人能告诉我这个新功能是否存在以及如何实现吗?

我想您正在寻找SKProductViewController

您可以使用以下代码呈现SKProductViewController:

NSDictionary *parameters = [NSDictionary dictionaryWithObject:@"YOURITUNESAPPID" forKey:SKStoreProductParameterITunesItemIdentifier];

SKProductViewController *productViewController = [[SKProductViewController alloc] init];
[self presentViewController:productViewController animated:YES completion:nil]];
这假设您在UIViewController子类中,并且知道您的iTunes应用程序标识符。这将显示一个模型viewController,显示该应用程序的AppStore条目


用户可以从该viewController离开评级。但我还没能写一篇评论

我想你在找SKProductViewController

您可以使用以下代码呈现SKProductViewController:

NSDictionary *parameters = [NSDictionary dictionaryWithObject:@"YOURITUNESAPPID" forKey:SKStoreProductParameterITunesItemIdentifier];

SKProductViewController *productViewController = [[SKProductViewController alloc] init];
[self presentViewController:productViewController animated:YES completion:nil]];
这假设您在UIViewController子类中,并且知道您的iTunes应用程序标识符。这将显示一个模型viewController,显示该应用程序的AppStore条目


用户可以从该viewController离开评级。但我还没能写一篇评论

我在使用Appirator时遇到了同样的问题,我已经用这种方式部分解决了这个问题

定义iOS7的模板:

NSString*templateReviewURLiOS7=@“itms-apps://itunes.apple.com/app/idAPP_ID";

在rateApp方法上进行此更改

+ (void)rateApp {

    .
    .
    .

// this URL Scheme should work in the iOS 6 App Store in addition to older stores
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];

   // iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
   if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
       reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
   }

    .
    .
    .
}

这将像过去一样打开iOS6中的rate页面,而iOS7中的app页面

我在使用appirator时遇到了同样的问题,我已经用这种方式部分解决了这个问题

定义iOS7的模板:

NSString*templateReviewURLiOS7=@“itms-apps://itunes.apple.com/app/idAPP_ID";

在rateApp方法上进行此更改

+ (void)rateApp {

    .
    .
    .

// this URL Scheme should work in the iOS 6 App Store in addition to older stores
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];

   // iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
   if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
       reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
   }

    .
    .
    .
}

这将像过去一样打开iOS6中的rate页面,而iOS7中的app页面工作得非常出色。谢谢这不起作用,苹果已禁用在iOS 7中使用
SKProductViewController
查看应用程序的功能。您没有在应用程序中使用
参数
变量example@mattsson你是对的,我只是不幸地发现“写评论”按钮没有启用。如果启用该功能,将会非常棒:(非常有魅力。谢谢!!这不起作用,苹果已经禁止在iOS 7中使用
SKProductViewController
查看应用程序。您没有在应用程序中使用
参数
变量。)example@mattsson你说得对,我只是不幸地发现“写评论”按钮没有启用。那太棒了如果启用:(我也这样做了,但这再次将我从我的应用程序带到appstore。我也这样做了,但这再次将我从我的应用程序带到appstore。