IOS之提示Interface type cannot be statically allocated
1、問題
command + R運(yùn)行提示如下錯(cuò)誤
Interface type cannot be statically allocated
2、解決辦法
是代碼寫錯(cuò)了
User user = [[User alloc] init];
改成如下
User *user = [[User alloc] init];
作者:chen.yu
深信服三年半工作經(jīng)驗(yàn),目前就職游戲廠商,希望能和大家交流和學(xué)習(xí),
微信公眾號(hào):編程入門到禿頭 或掃描下面二維碼
零基礎(chǔ)入門進(jìn)階人工智能(鏈接)