Skip to content

Commit

Permalink
Work on #1
Browse files Browse the repository at this point in the history
  • Loading branch information
zackliston committed Aug 11, 2014
1 parent 721018d commit 2a5dbb8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ZLPrompUserReviewSource/ZLPromptUserReview.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,9 @@ - (NSInteger)numberOfDaysToRemindUser

- (void)openAppInAppStore
{



//#if TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
NSLog(@"iTunes App Store is not supported on the iOS simulator. Unable to open App Store page.");
//#else
#else

NSString *launchUrl = @"";
if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
Expand All @@ -261,8 +258,7 @@ - (void)openAppInAppStore
launchUrl = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", self.appID];
}
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:launchUrl]];
//#endif

#endif
}

#pragma mark Notification Handlers
Expand Down

0 comments on commit 2a5dbb8

Please sign in to comment.