error: Semantic Issue: Interface type cannot be statically allocated
出現這個錯誤的原因是
接口聲明對象時(我這麼一說,大家應該懂我意思吧),必須聲明為引用,即指針
Car car = [[Car alloc] init];
改為 Car *car = [[Car alloc] init];
error: Semantic Issue: Interface type cannot be statically allocated
出現這個錯誤的原因是
接口聲明對象時(我這麼一說,大家應該懂我意思吧),必須聲明為引用,即指針
Car car = [[Car alloc] init];
改為 Car *car = [[Car alloc] init];