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


class SKStoreProductViewController : UIViewController


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.


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

Product Dictionary Keys

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

See Also

Affiliate Recommendations

class SKAdNetwork

A class that validates advertiser-driven app installations.