Xcode工程編譯錯誤之iOS開發之Sending '__strong typeof (xxx)' (aka 'xxxx *__strong') to parameter of incompatibl...

iphone開發出現警告: Sending '__strong typeof (xxx)' (aka 'xxxx *__strong') to parameter of incompatible type 'id<xxx>' 如圖: 原因是沒有在頭文件實現相應協議。 解決方法是在頭文件(.h文件)中 @interface 一行後面加上 <協議名> 如圖:
相關文章
相關標籤/搜索