Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Fixed warnings that come up when opening AppStore link #141

Merged
merged 1 commit into from
Jul 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Harpy/Harpy.m
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ - (void)appStoreVersionIsNewer:(NSString *)currentAppStoreVersion {
- (void)launchAppStore {
NSString *iTunesString = [NSString stringWithFormat:@"https://itunes.apple.com/app/id%@", [self appID]];
NSURL *iTunesURL = [NSURL URLWithString:iTunesString];
[[UIApplication sharedApplication] openURL:iTunesURL];
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication] openURL:iTunesURL];
});

if ([self.delegate respondsToSelector:@selector(harpyUserDidLaunchAppStore)]){
[self.delegate harpyUserDidLaunchAppStore];
Expand Down