percentSymbol
パーセント記号を返します
解説
パーセント記号を返します。
日本語のデフォルトは「%」です。
返り値
( NSString * )
なし
引数
フレームワーク
Foundation
クラス
NSNumberFormatter
Instance Methods
使用可能
10.4
参照
-setPercentSymbol:
例文
#import "MyObject.h" @implementation MyObject // - (IBAction)myAction:(id)sender { NSNumberFormatter *numFormat = [[[NSNumberFormatter alloc] init] autorelease] ; [numFormat setFormatterBehavior: NSNumberFormatterBehavior10_4 ]; NSLog(@"percentSymbol %@",[numFormat percentSymbol]); } @end