SKProduct Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/StoreKit.framework
Availability
Available in OS X v10.7 and later.
Companion guide
Declared in
SKProduct.h

Overview

SKProduct objects are returned as part of an SKProductsResponse object. Each product object provides information about a product you previously registered in iTunes Connect.

Tasks

Getting Product Attributes

Getting Downloadable Content Information

Properties

downloadable

A Boolean value that indicates whether the App Store has downloadable content for this product. (read-only)

@property(nonatomic, readonly, getter=isDownloadable) BOOL downloadable
Discussion

You can associate a set of data files with the iTunes Connect record you created for a product. The value of this property is YES if at least one file has been associated with the product.

Availability
  • Available in OS X v10.8 and later.
Declared In
SKProduct.h

localizedDescription

A description of the product. (read-only)

@property(nonatomic, readonly) NSString *localizedDescription
Discussion

The description is localized based on the currentLocale property.

Availability
  • Available in OS X v10.7 and later.
Declared In
SKProduct.h

localizedTitle

The name of the product. (read-only)

@property(nonatomic, readonly) NSString *localizedTitle
Discussion

The description is localized based on the currentLocale property.

Availability
  • Available in OS X v10.7 and later.
Declared In
SKProduct.h

price

The cost of the product in the local currency. (read-only)

@property(nonatomic, readonly) NSDecimalNumber *price
Discussion

Your application can format the price using a number formatter, as shown in the following sample code:

NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
[numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[numberFormatter setLocale:product.priceLocale];
NSString *formattedString = [numberFormatter stringFromNumber:product.price];
Availability
  • Available in OS X v10.7 and later.
Declared In
SKProduct.h

priceLocale

The locale used to format the price of the product. (read-only)

@property(nonatomic, readonly) NSLocale *priceLocale
Availability
  • Available in OS X v10.7 and later.
See Also
Declared In
SKProduct.h

productIdentifier

The string that identifies the product to the Apple App Store. (read-only)

@property(nonatomic, readonly) NSString *productIdentifier
Availability
  • Available in OS X v10.7 and later.
Declared In
SKProduct.h