티스토리 뷰
NSDecimalNumber *someAmount = [NSDecimalNumber decimalNumberWithString:@"340000"];
NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setCurrencySymbol:@""];//\ 표시 제거
[target setText:[NSString stringWithFormat:@"%@원", [currencyFormatter stringFromNumber:someAmount]]];
NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setCurrencySymbol:@""];//\ 표시 제거
[target setText:[NSString stringWithFormat:@"%@원", [currencyFormatter stringFromNumber:someAmount]]];
'나름 프로그래밍? > Objective-C' 카테고리의 다른 글
NSString 한글 2바이트로 계산.. (0) | 2011.07.14 |
---|---|
UIToolBar 투명하게 만들기 (0) | 2011.06.29 |
UIWebView 컨텐츠 크기 알아오기 (0) | 2011.06.16 |
날짜 다루기 (0) | 2011.06.16 |
Document 경로 (0) | 2011.06.01 |