次のエラーが表示されます。
[NSIndexPath 行]: 割り当て解除されたインスタンス 0x13135d50 に送信されたメッセージ
私のコード:
-(void) scrollViewDidFinishScrolling: (UIScrollView*) scrollView {
CGPoint point = [self convertPoint:CGPointMake(self.frame.size.width/2.0, kDefaultCellHeight/2.0) toView:self.tableView];
NSIndexPath* centerIndexPath = [self.tableView indexPathForRowAtPoint:point];
[self.tableView selectRowAtIndexPath: centerIndexPath
animated: YES
scrollPosition: UITableViewScrollPositionTop];
if (centerIndexPath.row != self.currentIndex.row) {
//Hide the arrow when scrolling
[self setCurrentIndex:centerIndexPath];
}
[self.arrow show:YES];