isHostCacheEnabled
ホストをキャッシュするかを返します
返り値
( BOOL )
YES/NO
引数
フレームワーク
Foundation
クラス
NSHost
Class Methods
使用可能
10.0
参照
+ setHostCacheEnabled:
+ flushHostCache
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHost *host1 = [NSHost currentHost]; NSHost *host2 = [NSHost currentHost]; [NSHost setHostCacheEnabled:YES]; if ([NSHost isHostCacheEnabled]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end