warning: local declaration of '' hides instance variable

Contributed by: akira on 2010年 7月6日(火) 23:54 JST

Last modified on

ローカル変数の宣言~は、インスタンス変数と同じ名前です  →インスタンス変数にある変数名とメソッドで宣言した変数名がかぶっている 修正前 NSMutableArray *komaPattern = [NSMutableArray array]; 修正後インターフェース部で定義しているので、型指定をするとlocal変数と判断するらしい。 komaPattern = [NSMutableArray array];

 iPhoneアプリ研究会[*1]

コメント (0件)

Geeklog Site - warning: local declaration of '' hides instance variable
https://geeklog.craine.ne.jp/article.php?story=20100706235458963

[*1] http://appteam.blog114.fc2.com/blog-entry-121.html