2013-04-22 33 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

相關問題