0
Iam이 NSLocale 통화 형식을 표시 할 수있는 코드를 찾고 있습니다. ios에서 NSLocale 통화를 인쇄 할 수 있습니까?
나는 코드 아래 사용 내가 NSLog (@ "%의 @", skProduct.priceLocale)을 시도했을 때 NSLocale에 따라 정확한 가격 양을 표시하는 방법NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init] ;
[formatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[formatter setLocale:skProduct.priceLocale];
NSLog(@"formatter%@",formatter);
NSLog(@"%@",skProduct.priceLocale); //// i want to print NSLocale value
NSString* currencyString = [formatter stringFromNumber:skProduct.price];
NSLog(@"currencyString price %@",currencyString);
; 그것은 약간의 메모리 위치와 같은 표시 .. 이는 시도 나에게
없는 상사, 가격 양하지를 통화 기호 또는 코드를 변환 찾고 있어요, 나는 $ 1 변환 INR 59.8를 원하는 – Navi
"skProduct.price"와 같이 인쇄하면 현재 로케일 국가 인 – Navi
@Navi 대신 INR 형식 (Indian Rupee)으로 인쇄됩니다.이 경우 환율을 받고 설명서를 변환해야합니다. – belous