- 隐藏 UITableView的滚动条以及修改滚动条的颜色
//隐藏滚动条
self.tableView.showsVerticalScrollIndicator = NO;
//修改颜色
self.tableView.indicatorStyle=UIScrollViewIndicatorStyleWhite;
//设置 TableView 的底部 View
UIView *footView=[UIView new];
footView.frame=CGRectMake(0, 0, 320, 30);
self.tableV.tableFooterView=footView;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil]
withRowAnimation:UITableViewRowAnimationFade];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:0];
[self.tableView reloadSections:indexSet
withRowAnimation:UITableViewRowAnimationFade];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableview scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
self.tableView.delaysContentTouches = NO;
for (UIView *currentView in self.tableView.subviews){
if([currentView isKindOfClass:[UIScrollView class]]){
((UIScrollView *)currentView).delaysContentTouches = NO;
break;
}
}