Sending PublicLocalViewController *__strong to parameter of incompatible type id (协议)_Nullable 警告问题

最近出现如下警告:
Sending ‘PublicLocalViewController *__strong’ to parameter of incompatible type ‘id _Nullable’

发现是将协议 NSURLSessionDelegate 引入写到了.m文件中 ,可能还有的朋友没有引入;

解决警告办法:

@interface PublicLocalViewController : MainViewController<NSURLSessionDelegate>
@end

猜你喜欢

转载自blog.csdn.net/u013983033/article/details/85988996