For Analysis and collecting data I want to get The price of SKProduct in dollars.
The base code I use to show the user the price is :
_priceFormatter = [[NSNumberFormatter alloc] init];
[_priceFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[_priceFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[_priceFormatter setLocale:inAppProduct.priceLocale];
inAppItemString = [_priceFormatter stringFromNumber:inAppProduct.price];
This code give me the real price the user should pay with his local coin
I tried to set the local as en_US, but I got the same price as before , with the $ :) This what I changed for trying this:
NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
[_priceFormatter setLocale:usLocale];
Any idea how to get the price in USD ?