2011-10-03 28 views
2

我试图在我的应用中实现Appirater。我按照读过的说明操作,并且该应用在Xcode中运行良好。但是没有消息显示,无论我尝试运行多少次。我编辑了#defines,所以问题不应该在那里。当启用APPIRATER_DEBUG时,它也不会显示任何内容。我已经尝试清理该项目,但似乎没有工作。Appirater不起作用

+0

您可能想要发布一些代码! –

+2

你有没有叫过[[Appirater appLaunched:YES];'? – Yorxxx

+0

我致电[Appirater appLaunched:YES];在 - (void)applicationDidFinishLaunching:(UIApplication *)应用程序和[Appirater appEnteredForeground:YES];在 - (void)applicationWillEnterForeground:(UIApplication *)应用程序中。我还将APPIRATER_APP_ID更改为我的应用程序ID。当启用APPIRATER_DEBUG时,它会在控制台中显示使用次数,但UIAlertView不会按照说明中的说明弹出。当使用计数大于APPIRATER_USES_UNTIL_PROMPT时,它也不会弹出。 – Stupebrett

回答

0

您在AppDelegate.ma进口Appirater现在应该打开弹出来推出的应用

进口 “AppDelegate.h”

进口 “Appirater.h”

的@执行的AppDelegate

  • (BOOL)申请:(UIApplication的*)应用程序didFinishLaunchingWithOptions:(NSDictionary的*)launchOptions {Appliter appLaunched];

    return YES; }