Xcode: used as the name of the previous ... Warningを消す
今まで無視してたのですが
used as the name of the previous parameter rather than as part of the selector
というWarningが鬱陶しかったので消すことにしました。
-(void)hoge:(int)fuga:(float)foo{ NSLog(@"%d:%f",fuga,foo); }
となっていると多分エラーが出ます。
-(void)hoge:(int)fuga floatVar:(float)foo{ NSLog(@"%d:%f",fuga,foo); }
こんな風に引数に説明をつけてあげるとWarningが消えます。
詳細! Objective-C iPhoneアプリ開発 入門ノート Xcode5+iOS7対応
- 作者: 大重美幸
- 出版社/メーカー: ソーテック社
- 発売日: 2013/11/02
- メディア: 単行本
- この商品を含むブログ (2件) を見る