Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 52d39c03f8
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 44 lines (29 sloc) 1.459 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
//
// NSURL+DTAppLinks.h
// DTFoundation
//
// Created by Oliver Drobnik on 11/25/11.
// Copyright (c) 2011 Cocoanetics. All rights reserved.
//


/** A collection of category extensions for `NSURL` that provide direct access to built-in app capabilites.
For example: Open the app store on the page for the app
NSURL *appURL = [NSURL appStoreURLforApplicationIdentifier:@"463623298"];
[[UIApplication sharedApplication] openURL:appURL];
*/

@interface NSURL (DTAppLinks)

/**-------------------------------------------------------------------------------------
@name Mobile App Store Pages
---------------------------------------------------------------------------------------
*/

/** Returns the URL to open the mobile app store on the app's page.
@param identifier The application identifier that gets assigned to a new app when you add it to iTunes Connect.
@return Returns the URL to the direct app store link
*/
+ (NSURL *)appStoreURLforApplicationIdentifier:(NSString *)identifier;


/** Returns the URL to open the mobile app store on the app's review page.
The reviews page is a sub-page of the normal app landing page you get with appStoreURLforApplicationIdentifier:

@param identifier The application identifier that gets assigned to a new app when you add it to iTunes Connect.
@return Returns the URL to the direct app store link
*/
+ (NSURL *)appStoreReviewURLForApplicationIdentifier:(NSString *)identifier;

@end

Something went wrong with that request. Please try again.