Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nicklockwood/iRate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Lockwood committed Feb 26, 2012
2 parents 0a0c28f + 35b7c5b commit aafcb6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions iRate/iRate.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
- (void)iRateUserDidAttemptToRateApp;
- (void)iRateUserDidDeclineToRateApp;
- (void)iRateUserDidRequestReminderToRateApp;
- (void)iRateDidDetectAppUpdate;

@end

Expand Down
5 changes: 5 additions & 0 deletions iRate/iRate.m
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ - (void)applicationLaunched:(NSNotification *)notification
[defaults setInteger:0 forKey:iRateEventCountKey];
[defaults setObject:nil forKey:iRateLastRemindedKey];
[defaults synchronize];

//inform about app update
if ([delegate respondsToSelector:@selector(iRateDidDetectAppUpdate)]) {
[delegate iRateDidDetectAppUpdate];
}
}

[self incrementUseCount];
Expand Down

0 comments on commit aafcb6a

Please sign in to comment.