macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

URLHandleUsingCache:

URLHandleを返します
-(NSURLHandle *)URLHandleUsingCache:(BOOL)shouldUseCache:

解説

URLHandleを返します。

返り値

( NSURLHandle * )

URLハンドル

引数

( BOOL )shouldUseCache

YES/NO

クラス

NSURL

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSURLHandle *uHandle;
NSURL *url = [NSURL fileURLWithPath:@"/"];
uHandle = [url URLHandleUsingCache:NO];
NSLog([NSString stringWithFormat:@"%@",[uHandle failureReason]]);

}

@end