locale
レシーバーのロケールを返します
解説
レシーバーのロケールを返します。
引数
フレームワーク
Foundation
クラス
NSDateFormatter
Instance Methods
使用可能
10.4
参照
-setLocale:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDateFormatter *dateFormat = [[NSDateFormatter alloc] initWithDateFormat:@"%B %e, %Y" allowNaturalLanguage:NO]; [myOutlet setFormatter:dateFormat]; NSLocale *aLocale = [dateFormat locale]; NSLog([aLocale description]); } @end