我希望用户滚动UITableView,但不要点击UITableView,我该怎么办?谢谢。
答案 0 :(得分:0)
使用
- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated
{
}
答案 1 :(得分:0)
您需要编写委托函数
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (YouWantToAllowTouch)
return indexPath;
else
return nil;
}