Re: Retrieve Default Currency Type in Mac, iPhone
Re: Retrieve Default Currency Type in Mac, iPhone
- Subject: Re: Retrieve Default Currency Type in Mac, iPhone
- From: Graham Cox <email@hidden>
- Date: Mon, 16 Feb 2009 22:38:46 +1100
On 16 Feb 2009, at 10:30 pm, Tharindu Madushanka wrote:
Hi,
I want to get the currency type of iPhone default selected language.
If I
add an NSNumberFormatter and format a number I will get a string
with the
currency type. But I cannot sub string this and get the currency
type since
it might vary the character size.
When international is selected as United States,
For example $ 123,290.00 , I want to get $ mark only.
TRY 2.500,00, I want to get TRY only.
Can I do this, Please explain me.
[[NSLocale currentLocale] objectForKey: NSLocaleCurrencySymbol];
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden