1. 程式人生 > >Xcode編譯警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'

Xcode編譯警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'

xxx cnblogs 解決方法 strong 可能 警告 pos -1 src

編譯報警告

技術分享

可能是 自定義分類使用協議時出現與父類協議的沖突

解決方法如下:

技術分享

Xcode編譯警告Assigning to 'id<XXXDelegat> ——Nullable' from incompatible type 'XXXView *const_strong'