IOS之提示Interface type cannot be statically allocated
生活随笔
收集整理的這篇文章主要介紹了
IOS之提示Interface type cannot be statically allocated
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、問題
command? + R運(yùn)行提示如下錯(cuò)誤
Interface type cannot be statically allocated?
?
?
2、解決辦法
是代碼寫錯(cuò)了
User user = [[User alloc] init];改成如下
?
User *user = [[User alloc] init];?
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的IOS之提示Interface type cannot be statically allocated的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IOS之Xcode之快捷键
- 下一篇: IOS之学习笔记五(合成存取方法)