Instance Property

price

The cost of the product in the local currency.

Declaration

var price: NSDecimalNumber { get }

Discussion

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.