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