I am using StoreKit
to implement an in app purchase store in my application.
I have a custom design and it means that the value of the price should be white and large, and the currency symbol smaller, darker and aligned to the top of the price value.
I can get the currency symbol without any problems by using the NSLocale
in SKproduct
's priceLocale
property, and the value of the price in the price
property.
My problem is knowing when I should put the currency symbol before the price and when to put it after the price.
Examples:
- $5,99
- 0,79€
I could easily use the NSNumberFormatter
to get this worked out "out of the box", but since my layout defines a different style for the value and currency symbol, I've found myself in a position where a more manual workaround is required.
Any thoughts ?