Class

SKStoreProductViewController

A view controller that provides a page where the user can purchase media from the App Store.

Overview

To display a store for users to purchase media from the App Store, create an SKStoreProductViewController object and set its delegate. Then, present the view controller modally from another view controller in your app. Your delegate dismisses the view controller when the user completes the purchase.

To indicate a specific product to sell, pass its iTunes item identifier to the loadProduct(withParameters:completionBlock:) method.

Topics

Setting a Delegate

var delegate: SKStoreProductViewControllerDelegate?

The store view controller’s delegate.

protocol SKStoreProductViewControllerDelegate

A protocol called when the user dismisses the store screen.

Loading a New Product Screen

Identifying Products and Affiliates

Product Dictionary Keys

Keys for identifying products and the tokens for affiliates and campaigns.