このエラーが発生しています:
-[__NSArrayM objectAtIndex:]: index 556503008 beyond bounds [0 .. 2]'
アプリがクラッシュする場所は次のとおりです。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSUInteger index = [[Data singleton].annotations objectAtIndex:indexPath.row];
self.pinVC = [[PinViewController alloc]init];
[self.pinVC setIdentifier:index];
[[self navigationController]pushViewController:self.pinVC
animated:YES];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.pinArray.count;
}
私は Objective C が初めてで、なぜこれが起こっているのかわかりません。誰かが私を助けることができますか?