textAttributesForPositiveValues
正の数のテキスト属性の辞書を返します
解説
正の数のテキスト属性の辞書(NSDictionary)を返します。
返り値
( NSDictionary * )
正の数の文字属性辞書
引数
フレームワーク
Foundation
クラス
NSNumberFormatter
Instance Methods
使用可能
10.0
参照
- setTextAttributesForPositiveValues:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSNumberFormatter *numFormat = [[[NSNumberFormatter alloc] init] autorelease] ; [numFormat setFormat:@"+#,##0.00;[Red]-#,##0.00"]; [[myOutlet cell] setFormatter:numFormat]; NSLog([[[[myOutlet cell] formatter] textAttributesForPositiveValues] description]); } @end