2013-04-22 78 views
2

我试图实现一个按钮,只有在触摸该按钮时才会对我的应用进行评分。这只是一个简单的行动。将“评价我的应用”操作添加到按钮

我想它只是一个警戒视图,但我真的不知道如何启动它。我从未实现过一个。

谢谢。

回答

3

嗨Vergmort与参数WAF表明它很容易和漂亮的使用APPirater。是显示等级警报为u希望当天和时间明智的是这样的: -

enter image description here

你只是仅仅实现了一些简单的步骤: -

  • 下载代码从这个链接: - https://github.com/arashpayan/appirater

  • 只有这三个文件需要您的项目: -

    AppiraterDelegate.h Appirater.h Appirater.m

  • 添加这三个文件到您的项目和要显示此率警报导入此#import "Appirater.h"

  • 北医三院的代码这馅饼也:-(在mantion https://github.com/arashpayan/appirater如何impliment)

    [Appirater setAppId:@"111111111"];   //yourApp id 
        [Appirater setDaysUntilPrompt:1]; 
        [Appirater setUsesUntilPrompt:5]; 
        [Appirater setTimeBeforeReminding:1]; 
        [Appirater setDebug:YES];    //please while you upload app please setDebug `YES` to `NO` becouse its only for developer testing . 
        [Appirater appLaunched:YES]; 
    

希望你在我充分说明拿到了您的解决方案。享受编码:)

编辑

可以出现在这个使用按钮点击动作像贝娄: -

例如以exampleviewcontroller.m您的按钮操作,那么你需要导入#import "Appirater.h"exampleviewcontroller.m然后。

-(IBAction)yourBtnAction 
{ 
      [Appirater setAppId:@"111111111"];   //yourApp id 
      [Appirater setDaysUntilPrompt:1]; 
      [Appirater setUsesUntilPrompt:5]; 
      [Appirater setTimeBeforeReminding:1]; 
      [Appirater setDebug:YES];    //please while you upload app please setDebug `YES` to `NO` becouse its only for developer testing . 
      [Appirater appLaunched:YES]; 

} 
+0

嗨@NitinGohel很好的解释。我可以问你一个问题吗?我可以让此警报仅在单击按钮时出现吗? – Vergmort 2013-04-23 11:48:47

3

像许多人已经指出它已经回答,但你也应该看看APPIRIER。这是一个很大的解决方案,为您自动执行此操作。

https://github.com/arashpayan/appirater

+0

你能帮我实施吗? – Vergmort 2013-04-22 19:52:07

+0

当然。从链接下载文件,按照链接首页的说明操作(滚动到底部)。如果你有更多的问题后,如果你这样做 – 2013-04-22 21:58:36