首页 > 代码库 > iOS编译错误:Property cannot have array or function type 'Block' (aka 'void (XXXXView *__st

iOS编译错误:Property cannot have array or function type 'Block' (aka 'void (XXXXView *__st


XXXXView 中的Block错误,原因:

typedef void (^Block)(XXXXView *);

在这个demo中忘记写^了,导致此错误

iOS编译错误:Property cannot have array or function type 'Block' (aka 'void (XXXXView *__st