Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed critical StoreKit bug, updated readme #92

Merged
merged 3 commits into from

2 participants

@ngreenstein
Collaborator

Fixes a critical but where StoreKit wasn't shown when triggered by an alert view (h/t @mrcmd).

Small fix to readme to better reflect StoreKit update than my original.

@arashpayan arashpayan merged commit e999b69 into arashpayan:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 7 deletions.
  1. +1 −1  Appirater.m
  2. +5 −6 README.md
View
2  Appirater.m
@@ -405,7 +405,7 @@ + (void)rateApp {
}
}
-- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
+- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
switch (buttonIndex) {
View
11 README.md
@@ -9,12 +9,11 @@ homepage] [homepage].
Getting Started
---------------
1. Add the Appirater code into your project.
-2. Add the `CFNetwork` and `SystemConfiguration` frameworks to your project.
-3. If you want to take advantage of [StoreKit's in-app rating view](http://developer.apple.com/library/ios/#documentation/StoreKit/Reference/SKITunesProductViewController_Ref/Introduction/Introduction.html) (iOS 6), add the `StoreKit` framework. Be sure to **change Required to Optional** for StoreKit in your target's Build Phases » Link Binary with Libraries section.
-4. Call `[Appirater setAppId:@"yourAppId"]` 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.
-5. Call `[Appirater appLaunched:YES]` at the end of your app delegate's `application:didFinishLaunchingWithOptions:` method.
-6. Call `[Appirater appEnteredForeground:YES]` in your app delegate's `applicationWillEnterForeground:` method.
-7. (OPTIONAL) Call `[Appirater userDidSignificantEvent:YES]` when the user does something 'significant' in the app.
+2. Add the `CFNetwork`, `SystemConfiguration`, and `StoreKit` frameworks to your project. Be sure to **change Required to Optional** for StoreKit in your target's Build Phases » Link Binary with Libraries section.
+3. Call `[Appirater setAppId:@"yourAppId"]` 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.
+4. Call `[Appirater appLaunched:YES]` at the end of your app delegate's `application:didFinishLaunchingWithOptions:` method.
+5. Call `[Appirater appEnteredForeground:YES]` in your app delegate's `applicationWillEnterForeground:` method.
+6. (OPTIONAL) Call `[Appirater userDidSignificantEvent:YES]` when the user does something 'significant' in the app.
Configuration
-------------
Something went wrong with that request. Please try again.