Join Ron Buencamino for an in-depth discussion in this video Displaying SKProducts in a storefront, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] In our last lesson we made…an sk products request and were returned a list…of products from the app store.…In this lesson, we're going to take that list of sk products…and display them inside of our app's store front.…Let's start by going to StoreTableViewController.swift.…Once we're here in StoreTableViewController.swift,…what we want to do is populate our table view.…Over here, for a number of sections in our table view,…let's take this zero out and we're going to replace it…with IAPManager.sharedInstance.products.count…and what we're doing here is we're setting…the number of sections to be the number of products…that were returned to us from our sk products request.…
For a number of rows in each section, we're going to say one.…What I want to do now for cell for row at index path…is actually configure the cell that we're going to present…to display our product information.…What I want to do is say let product equal…IAPManager.sharedInstance and we want to get…the product that is at indexpath.row.…
First, get an overview of StoreKit and the types of purchases you can offer, including consumable and non-consumable products and non-renewing and auto-renewable subscriptions. Next, learn how to configure new products for sale with iTunes Connect and display a storefront right within your app. Ron then shows how to request and process payments, and deliver users' purchases to their iOS devices. Plus, learn about restoring purchased content—a smart strategy for keeping your app rating high—and requesting reviews from users using the new SKStoreReviewController API, which doesn't require leaving the app.
- What is StoreKit?
- Creating products in iTunes Connect
- Displaying products in your storefront
- Requesting payments
- Receipt validation
- Delivering products
- Restoring purchased content
- Asking for app reviews