initWithTarget:protocol:
調査中
-(id)initWithTarget:(NSObject *)anObject: protocol:(Protocol *)aProtocol:
解説
調査中
オブジェクトとプロトコルでプロトコルチェッカーを初期化して返します。
返り値
( id )
プロトコル・チェッカー
引数
( NSObject * )anObject
オブジェクト
( Protocol * )aProtocol
プロトコル
フレームワーク
Foundation
クラス
NSProtocolChecker
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSProtocolChecker *pChecker = [[NSProtocolChecker alloc] initWithTarget:self protocol:@protocol(NSObject)]; } @end