IOS之提示Interface type cannot be statically allocated

1、问题

command  + R运行提示如下错误

Interface type cannot be statically allocated


2、解决办法

是代码写错了

User user = [[User alloc] init];

改成如下

User *user = [[User alloc] init];




猜你喜欢

转载自blog.csdn.net/u011068702/article/details/80939338