NSRangeException

どうやら配列絡みのエラーっぽい。
[bash]
Terminating app due to uncaught exception ‘NSRangeException’,
reason: ‘*** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 2]’
[/bash]

下記のメソッドで返されたカウントより範囲を超えてしまっているようだ。
[c]
– (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return items.count;
}
[/c]

よくよく見ると、storybordでのtableViewのcontent設定が、Static Cells に設定されていたことに気づく。
ここは、Dynamic Prototypes 設定でしょ。

This entry was posted in Objective-C, 技術情報. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です