简体   繁体   English

如何为我的 iPhone 游戏制作价格视图

[英]how to make a rate view for my iphone game

I play lots of games where a rate view pops up and takes me right to the app store to rate the game.我玩了很多游戏,会弹出一个评分视图,然后直接到应用商店对游戏进行评分。 I want to do this for my game, too.我也想为我的游戏做这个。

I've made a search on Google and found out how to know how long my app has been installed ( here ):我在 Google 上进行了搜索,发现如何知道我的应用安装了多长时间( 此处):

if (![[NSUserDefaults standardUserDefaults] boolForKey:@"firstTime") 
{

      [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"firstTime"];

      NSDate *currentDate = [NSDate date];

      [[NSUserDefaults standardUserDefaults] setObject:currentDate forKey:@"dateFirstLaunch"];

}

and then I can check with然后我可以检查

NSDate *dateFirstLaunch = [[NSUserDefaults standardUserDefaults] objectForKey:@"dateFirstLaunch")

But how do I get a rate view?但是我如何获得价格视图? I've looked into the documentation but I did not see it.我查看了文档,但我没有看到它。

Thank you for your answer.谢谢您的回答。

This question was recently asked here: App Store Review Button最近在这里提出了这个问题: App Store Review Button

There are many nice answers there.那里有很多很好的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM