UITableview 修改滚动条颜色

1
self.tableView.indicatorStyle=UIScrollViewIndicatorStyleWhite;
1
2
3
4
5
typedef NS_ENUM(NSInteger, UIScrollViewIndicatorStyle) {
UIScrollViewIndicatorStyleDefault, // Automatically switches appearance based on the user interface style
UIScrollViewIndicatorStyleBlack, // Dark indicator, for use on light backgrounds
UIScrollViewIndicatorStyleWhite // Light indicator, for use on dark backgrounds
};