[objective-C][Xcode]incompatible type

xViewController.m:37:24: Assigning to 'id<UIPickerViewDelegate>' from incompatible type 'xViewController *const __strong'
という警告があって、どうしたらいいか調べたらこれが見つかった。
//Suppress the warning by changing this:
controller.delegate = self;
//to this:
controller.delegate = (id)self;
こういう風に型を指定すればいいのか

0 件のコメント: