【问题标题】:Add "rate my app" action to a button [duplicate]将“评价我的应用程序”操作添加到按钮 [重复]
【发布时间】:2013-04-22 18:48:01
【问题描述】:

我正在尝试实现一个按钮,该按钮仅在触摸该按钮时才会对我的应用进行评分。这只是一个简单的动作。

我猜它只是一个警报视图,但我真的不知道如何启动它。我从来没有实现过。

谢谢。

【问题讨论】:

    标签: iphone ios ipad


    【解决方案1】:

    你好 Vergmort as par waf 建议使用 APPirater 非常简单和好用。是显示评级警报,因为你希望这样的日子和时间明智:-

    您只需执行一些简单的步骤:-

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

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

      AppiraterDelegate.h Appirater.h Appirater.m

    • 将这三个文件添加到您的项目中,并将此 #import "Appirater.h" 导入您要显示此费率警报的位置。

    • pth 这段代码:-(在https://github.com/arashpayan/appirater 中也提到了如何实现)

          [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];
      

    希望您通过我的完整描述得到您的解决方案。享受编码:)

    编辑

    您可以使用像 Bellow 这样的按钮单击操作来显示它:-

    例如你的 Button 动作到 exampleviewcontroller.m 然后你需要在 exampleviewcontroller.m 中导入#import "Appirater.h"

    -(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];
    
    }
    

    【讨论】:

    • 嗨@NitinGohel 很好的解释。我可以问你一个问题吗?我可以让此警报仅在单击按钮时出现吗?
    【解决方案2】:

    正如许多人指出的那样,它已经得到了回答,但你也应该看看 APPirater。这是一个很好的解决方案,可以为您实现自动化。

    https://github.com/arashpayan/appirater

    【讨论】:

    • 你能帮我实现这个吗?
    • 当然。从链接下载文件,也按照链接首页上的说明进行操作(滚动到底部)。如果您在这样做之后还有其他问题,请 Pm
    猜你喜欢
    • 2017-01-07
    • 2013-07-03
    • 2013-09-17
    • 1970-01-01
    • 1970-01-01
    • 2018-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多