formatWidth
フォーマット幅を返します
解説
フォーマット幅を返します。
返り値
( unsigned int )
整数値
引数
フレームワーク
Foundation
クラス
NSNumberFormatter
Instance Methods
使用可能
10.4
参照
-setFormatWidth:
例文
#import "MyObject.h" @implementation MyObject // - (IBAction)myAction:(id)sender { NSNumberFormatter *numFormat = [[[NSNumberFormatter alloc] init] autorelease] ; [numFormat setFormatterBehavior: NSNumberFormatterBehavior10_4 ]; [numFormat setCurrencyCode:@"AUD"]; NSLog(@"formatWidth %d",[numFormat formatWidth]); } @end