Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) openAppInAppStore
- {
- [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"macappstore://itunes.apple.com/us/app/mathemagics/id402458650?mt=12"]];
- dispatch_time_t delay = dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC);
- dispatch_queue_t main_queue = dispatch_get_main_queue();
- dispatch_after(delay, main_queue, ^{
- [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"macappstore://itunes.apple.com/us/app/mathemagics/id402458650?mt=12"]];
- });
- }
Add Comment
Please, Sign In to add comment