如果父類中有delegate屬性,並且子類中也具有同名的屬性,那么會報一下警告⚠️。解決辦法:在.m文件中添加:@dynamic delegate;具體請搜索動態綁定。如下圖:
// Auto property synthesis will not synthesize property 'delegate'; it will be implemented by sit superclass,use @dynamic to acknowledge intention
如果父類中有delegate屬性,並且子類中也具有同名的屬性,那么會報一下警告⚠️。解決辦法:在.m文件中添加:@dynamic delegate;具體請搜索動態綁定。如下圖:
// Auto property synthesis will not synthesize property 'delegate'; it will be implemented by sit superclass,use @dynamic to acknowledge intention
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。