macOS/iOS API解説

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

目次

URLHandleClassForURL:

指定したURLでURLハンドルのクラスを返します
+(Class)URLHandleClassForURL:(NSURL *)sender:

解説

指定したURLでURLハンドルのクラスを返します。

返り値

( Class )

クラス

引数

( NSURL * )sender

URL

クラス

NSURLHandle

Class Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
id class;
NSURL *url = [NSURL URLWithString:@"http://www.oomori.com/"];
class = [NSURLHandle URLHandleClassForURL:url];

NSLog([class className]);
}

@end