2010年12月17日金曜日

dose not implement the Delegate protocol が発生する場合の対処


xx.delegate = self;

のようなコーディングをすると以下のようなエラーが発生することがある。

XXController dose not implement the XXDelegate protocol

これは、デリゲートの処理を実装するためのプロトコルが存在しないというwarningです。
interface 定義に <xxDelegate>のプロトコルを追加することで消えます。

0 件のコメント:

コメントを投稿