iOS UITableView 修改滚动条颜色 默认选中第一条

//隐藏

self.tableView.showsVerticalScrollIndicator = NO;

//修改颜色

self.tableView.indicatorStyle=UIScrollViewIndicatorStyleWhite;

//选中0组0行

NSIndexPath *selectedIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];

 [self.tableView selectRowAtIndexPath:selectedIndexPath animated:NO scrollPosition:UITableViewScrollPositionNone];

posted on 2016-09-19 10:59  小小鸟的梦想  阅读(198)  评论(0编辑  收藏  举报