[iOS] 앱평가 하기, 리뷰 남기기는 iRate로
요즘 앱에서 자주 볼 수 있는 앱평가, 리뷰 유도 팝업창을 구현해 보겠습니다.
전에는 일일이 코딩을 해서 특정 시간에 노출한다던지, 특정 액션을 몇번 수행 했을 때 노출을 시켜주는 방식으로 구현을 했었는데 검색 중 iRate란 것을 발견했어요.
정말 편하고 쉽게 사용할 수 있습니다.
1. 먼저 iRate를 설치합니다.
https://github.com/nicklockwood/iRate
위 링크로 이동하면 다운받을 수 있습니다.
2. 소스코드 구현
+ (void)initialize
{
//테스트할 수 있는 앱의 번들아이디를 입력해 줍니다. (앱스토어에 등록된 앱)
//실제로 앱을 등록할 때는 프로젝트의 번들아이디로 교체해 줍니다.
[iRate sharedInstance].applicationBundleID = @"co.kr.appletree.appletree";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO;
//previewMode를 YES로 하면 바로 팝업창이 노출되어 테스트 할 수 있습니다.
//실제로 앱을 등록할 때는 NO로 변경합니다.
[iRate sharedInstance].previewMode = YES;
//[iRate sharedInstance].daysUntilPrompt = 0; // default = 10 몇일후에 노출시킬 것인지
//[iRate sharedInstance].usesUntilPrompt = 0; // default = 10 몇번째 실행 후에 노출시킬 것인지
}
'IT > iOS' 카테고리의 다른 글
[iOS] uiscrollview 스크롤시 맨위로 버튼 처리 (0) | 2015.08.13 |
---|---|
x-apple-amd-action_message (13) | 2015.08.03 |
[iOS] UILabel random Textcolor (1) | 2015.07.14 |
[iOS] UIView 부분적으로 라운드 적용하기 (2) | 2015.05.19 |
iOS8 버그 unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow (0) | 2014.11.06 |
iOS8 푸쉬 등록 에러메세지 (registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later) (0) | 2014.10.02 |
UICollectionview cell selection (0) | 2014.09.15 |
[iOS] Draw line (0) | 2014.08.13 |