Instance Property


The cost of the product in the local currency.


var price: NSDecimalNumber { get }


Your app 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];

See Also

Getting Pricing Information

var priceLocale: Locale

The locale used to format the price of the product.

var introductoryPrice: SKProductDiscount?

The object containing introductory price information for the product.

var discounts: [SKProductDiscount]

An array of discount offers available for the product.

class SKProductDiscount

The details of a discount offer for a subscription product.