Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Edited on 2016-02-02</strong></p> <p>Starting from iOS 6 <a href="https://developer.apple.com/library/prerelease/ios/documentation/StoreKit/Reference/SKITunesProductViewController_Ref/index.html" rel="noreferrer">SKStoreProductViewController</a> class was introduced. You can link an app without leaving your app. Code snippet in <strong>Swift 3.x/2.x</strong> and <strong>Objective-C</strong> is <a href="https://stackoverflow.com/a/32008404/1151916">here</a>.</p> <blockquote> <p>A <a href="https://developer.apple.com/library/prerelease/ios/documentation/StoreKit/Reference/SKITunesProductViewController_Ref/index.html" rel="noreferrer">SKStoreProductViewController</a> object presents a store that allows the user to purchase other media from the App Store. For example, your app might display the store to allow the user to purchase another app.</p> </blockquote> <hr> <p>From <a href="https://developer.apple.com/news/?id=01062010a" rel="noreferrer">News and Announcement For Apple Developers</a>. </p> <blockquote> <p>Drive Customers Directly to Your App on the App Store with iTunes Links With iTunes links you can provide your customers with an easy way to access your apps on the App Store directly from your website or marketing campaigns. Creating an iTunes link is simple and can be made to direct customers to either a single app, all your apps, or to a specific app with your company name specified.</p> <p>To send customers to a specific application: <a href="http://itunes.com/apps/appname" rel="noreferrer">http://itunes.com/apps/appname</a></p> <p>To send customers to a list of apps you have on the App Store: <a href="http://itunes.com/apps/developername" rel="noreferrer">http://itunes.com/apps/developername</a></p> <p>To send customers to a specific app with your company name included in the URL: <a href="http://itunes.com/apps/developername/appname" rel="noreferrer">http://itunes.com/apps/developername/appname</a></p> </blockquote> <hr> <p><strong>Additional notes:</strong></p> <p>You can replace <code>http://</code> with <code>itms://</code> or <code>itms-apps://</code> to avoid redirects.</p> <p>For info on naming, see Apple QA1633: </p> <p><a href="https://developer.apple.com/library/content/qa/qa1633/_index.html" rel="noreferrer">https://developer.apple.com/library/content/qa/qa1633/_index.html</a>.</p> <p><strong>Edit (as of January 2015):</strong></p> <p>itunes.com/apps links should be updated to appstore.com/apps. See QA1633 above, which has been updated. A new <a href="https://developer.apple.com/library/content/qa/qa1629/_index.html" rel="noreferrer">QA1629</a> suggests these steps and code for launching the store from an app:</p> <ol> <li>Launch iTunes on your computer.</li> <li>Search for the item you want to link to.</li> <li>Right-click or control-click on the item's name in iTunes, then choose "Copy iTunes Store URL" from the pop-up menu.</li> <li>In your application, create an <code>NSURL</code> object with the copied iTunes URL, then pass this object to <code>UIApplication</code>' s <code>openURL</code>: method to open your item in the App Store.</li> </ol> <p>Sample code:</p> <pre><code>NSString *iTunesLink = @"itms://itunes.apple.com/us/app/apple-store/id375380948?mt=8"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]]; </code></pre> <p><strong>Swift 3.0</strong></p> <pre><code> let urlStr = "itms://itunes.apple.com/us/app/apple-store/id375380948?mt=8" if #available(iOS 10.0, *) { UIApplication.shared.open(URL(string: urlStr)!, options: [:], completionHandler: nil) } else { UIApplication.shared.openURL(URL(string: urlStr)!) } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload