美文网首页初见
No known instance method for sel

No known instance method for sel

作者: Amuxiaomu | 来源:发表于2019-12-18 16:41 被阅读0次

编辑器报错:No known instance method for selector 'respondsToSelector:'
说明 在创建protocol的时候没有继承NSObject;

@protocol viewDelegate

@end

后面加上<NSObject>

@protocol viewDelegate<NSObject>

@end

相关文章

网友评论

    本文标题:No known instance method for sel

    本文链接:https://www.haomeiwen.com/subject/gkpunctx.html