■[iOS] Interface type cannot be statically allocated の原因と対応

f:id:takihiro:20130508135239p:image

iOSでの開発をしていると、表題のエラーが起こる場合があります。

原因

変数の型が静的割り当てになっていることが原因。

対応

変数の型をポインタ型にすると、エラーがなくなります。(変数の前に*をつけること)

原文地址:https://www.cnblogs.com/vonk/p/4273993.html