localizesFormat
数字フォーマッタはローカライズフォーマットを使うかを返します
解説
数字フォーマッタはローカライズフォーマットを使うかを返します。
初期設定はNOです。
返り値
( BOOL )
YES/NO
引数
フレームワーク
Foundation
クラス
NSNumberFormatter
Instance Methods
使用可能
10.0
参照
- setLocalizesFormat:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSNumberFormatter *numFormat = [[NSNumberFormatter alloc] init] ; [numFormat setPositiveFormat:@"#,##0.00"]; [myOutlet setFormatter:numFormat]; if ([numFormat localizesFormat]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end