0
点赞
收藏
分享

微信扫一扫

error: Semantic Issue: Interface type cannot be statically allocated

流沙雨帘 2023-02-19 阅读 94


 error: Semantic Issue: Interface type cannot be statically allocated

出现这个错误的原因是

 

接口声明对象时(我这么一说,大家应该懂我意思吧),必须声明为引用,即指针

 

Car car = [[Car alloc] init];

改为 Car *car = [[Car alloc] init];


举报

相关推荐

0 条评论