name
ホストのドメイン名を返します
解説
ホストのドメイン名を返します。
返り値
( NSString * )
名前
引数
フレームワーク
Foundation
クラス
NSHost
Instance Methods
使用可能
10.0
参照
- address
- names
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHost *host = [NSHost hostWithName:@"www.oomori.com"]; NSLog([host name]); } @end