IOS之提示Interface type cannot be statically allocated
生活随笔
收集整理的這篇文章主要介紹了
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];?
?
?
?
?
總結
以上是生活随笔為你收集整理的IOS之提示Interface type cannot be statically allocated的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IOS之Xcode之快捷键
- 下一篇: IOS之学习笔记五(合成存取方法)