- 824 名前:デフォルトの名無しさん [2010/03/07(日) 01:53:25 ]
- iPhone用のアプリを作っていますが、NSDictionaryの使い方で悩んでいます。
以下の1行で、プログラムの実行が異常終了してしまいますが、理由がわかりません。どなたかヒントをいただけませんか? sControls = [NSDictionary dictionaryWithObjectsAndKeys: display1, card1, display2, card2, display3, card3, display4, card4,nil]; ただし、 IBOutlet UILabel *display1; IBOutlet UIButton *card1; IBOutlet UILabel *display2; IBOutlet UIButton *card2; IBOutlet UILabel *display3; IBOutlet UIButton *card3; IBOutlet UILabel *display4; IBOutlet UIButton *card4; です。 最初は、card1〜card4のいずれかがnilで、その結果NSInvalidArgumentExceptionが起きているのでは?とデバッガで値を検査しましたが、そうではありませんでした。
|

|