Instance Property

price

The cost of the product in the local currency.

Declaration

@property(nonatomic, readonly) NSDecimalNumber *price;

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

priceLocale

The locale used to format the price of the product.

introductoryPrice

The object containing introductory price information for the product.

discounts

An array of discount offers available for the product.

SKProductDiscount

The details of a discount offer for a subscription product.