jjzjj

contentOffsetForScrollingToRowAtI

全部标签

ios - Xcode - [UITableView _contentOffsetForScrollingToRowAtIndexPath :atScrollPosition:]: row (7) beyond bounds (0) for section (0).'

我刚刚在我的Xcode项目中实现了AGPhotoBrowser类,但出现以下错误:Terminatingappduetouncaughtexception'NSRangeException',reason:'-[UITableView_contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:]:row(7)beyondbounds(0)forsection(0).'发生崩溃的代码在这里:#pragmamark-UIScrollViewDelegate-(void)scrollViewDidScroll:(UIScrollVi

ios - [UITableView _contentOffsetForScrollingToRowAtIndexPath :atScrollPosition:]

我正在使用tableview显示消息,我使用了下面的代码UIView*chatView=[selfbubbleView:[NSStringstringWithFormat:@"%@",message]from:YES];[self.chatArrayaddObject:[NSDictionarydictionaryWithObjectsAndKeys:message,@"text",@"self",@"speaker",chatView,@"view",nil]];[self.chatTableViewreloadData];[self.chatTableViewscrollToRow