Browse files

*UIAlertView wasn't being shown from the main thread. FIXED.

*Previous commit also fixed issue with iPad only apps not going to the write App Store url
  • Loading branch information...
1 parent 4540cd1 commit 545666ee64c2bd491f77cda0c44cec19c635c672 Arash Payan committed Oct 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Appirater.m
View
4 Appirater.m
@@ -263,7 +263,7 @@ - (void)incrementAndRate:(NSNumber*)_canPromptForRating {
[self ratingConditionsHaveBeenMet] &&
[self connectedToNetwork])
{
- [self showRatingAlert];
+ [self performSelectorOnMainThread:@selector(showRatingAlert) withObject:nil waitUntilDone:NO];
}
[pool release];
@@ -278,7 +278,7 @@ - (void)incrementSignificantEventAndRate:(NSNumber*)_canPromptForRating {
[self ratingConditionsHaveBeenMet] &&
[self connectedToNetwork])
{
- [self showRatingAlert];
+ [self performSelectorOnMainThread:@selector(showRatingAlert) withObject:nil waitUntilDone:NO];
}
[pool release];

0 comments on commit 545666e

Please sign in to comment.