TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2015 |
Maintained by OpinionzRate.
OpinionzRate is a class designed to simplify the way you remind your users to review your app on the App Store. It has unique designs for prompting user and we are going to add new design eventually. Read on below for how to get started.
StoreKit
frameworks to your project.#import <OpinionzRate.h>
in your AppDelegate.m[[OpinionzRate sharedInstance] setupWithAppStoreId:YOUR_APP_ID]
with the app id provided by Apple. A good place to do this is at the beginning of your app delegate's application:didFinishLaunchingWithOptions:
method.#import <OpinionzRate.h>
in your class where you want to ask user for review. [[OpinionzRate sharedInstance] promptForRating]
at your desired actionNOTE: prompt it after your view did appeared
To run the example project, clone the repo, and run pod install
from the Example directory first.
//
// AppDelegate.m
// Demo
//
// Created by Opinionz.io on 18/08/15.
// Copyright (c) 2015 Opinionz.io. All rights reserved.
//
#import <OpinionzRate.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[[OpinionzRate sharedInstance] setupWithAppStoreId:995007460];
return YES;
}
//
// ViewController.m
// Demo
//
// Created by Opinionz.io on 18/08/15.
// Copyright (c) 2015 Opinionz.io. All rights reserved.
//
#import "ViewController.h"
#import <OpinionzRate.h>
- (IBAction)buttonHandlerRate:(id)sender {
//Optional customization
// [OpinionzRate sharedInstance].title = @"Do you love our app?";
// [OpinionzRate sharedInstance].message = @"Would you mind taking a moment to rate it? It won’t take more than a minute. Thanks for your support!";
// [OpinionzRate sharedInstance].cancelTitle = @"No, thanks";
// [OpinionzRate sharedInstance].rateTitle = @"Rate now";
// [OpinionzRate sharedInstance].rateLaterTitle = @"Remind me later";
[[OpinionzRate sharedInstance] promptForRating];
}
You can set title
, message
, cancelTitle
, rateTitle
and rateLaterTitle
messages. If some of them are not set, default values will be used.
The OpinionzRate has the following properties:
@property (nonatomic, strong) NSString *title;
Title of the rate popup (default is "Enjoying Application name?"
@property (nonatomic, strong) NSString *message;
Message of the rate popup (default is "Would you mind taking a moment to rate it? It won’t take more than a minute. Thanks for your support!"
@property (nonatomic, strong) NSString *cancelTitle;
Cancel button title (default is "No, Thanks"
@property (nonatomic, strong) NSString *rateTitle;
Rate button title (default is "Rate me"
@property (nonatomic, strong) NSString *rateLaterTitle;
Rate later button title (default is "Remind me later"
The OpinionzRate class has the following methods:
+ (OpinionzRate *)sharedInstance;
Required method for getting single manager. The recommended way to set library into your application is to place a call to sharedInstance in your -application:didFinishLaunchingWithOptions: method.
- (void)setupWithAppStoreId:(NSUInteger)appStoreID;
Register app with store id and start using Opinionz SDK.
- (void)promptForRating;
Show rate popup at your desired time
OpinionzRate requires ARC.
Version 0.3.0
Version 0.2.0
Opinionz.io, [email protected]
OpinionzRate is available under the MIT license. See the LICENSE file for more info.