ホーム » 2012 » 8月 » 04

日別アーカイブ: 2012/08/04

2012年8月
 1234
567891011
12131415161718
19202122232425
262728293031  

カテゴリー

アーカイブ

ブログ統計情報

  • 80,112 アクセス



Objective-C

買った本を参考にしながら,NSArray を使用.
NSArray* ary = [NSArray arrayWithObject:[…],[…],…,nil] ;
と入力して,複数の要素を指定しているという様なエラー.
よーく確認すると,本の方は arrayWithObjects と最後に s が付いた複数指定のタイプ.
Xcode が補完してくれるのはいいが,間違って選択してエラーになると,原因を見つけるのがちょっと大変?


他にもタイマの利用で,タイマ処理関数名の直後の ” : ” も抜けていた.
  [NSTimer scheduledTimerWithTimeInterval:0.05 target:self
     selector:@selector(moveLabel:) userInfo:nil repeats:YES ] ;


Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.