failureReason
ロードが失敗した理由を文字列で返します
解説
ロードが失敗した理由を文字列で返します。
返り値
( NSString * )
文字列
引数
フレームワーク
Foundation
クラス
NSURLHandle
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSURLHandle *handle; NSURL *url = [NSURL URLWithString:@"http://www.oomori.com/"]; handle = [NSURLHandle cachedHandleForURL:url]; [handle loadInForeground]; NSLog([handle failureReason]); } @end