Change width and colour of scroll bar in UITableView, iphone

前端 未结 8 1558
时光说笑
时光说笑 2020-11-30 06:53

I could only find if one wants to display scroll bar or not using

tableView.showsVerticalScrollIndicator = YES/NO;

but how can I customize

8条回答
  •  广开言路
    2020-11-30 07:08

    You can hide the original scroll bar and scroll using your custom scroll bar.

    – (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated 
    

    can be used to scroll content, just add your custom bar to the table.

提交回复
热议问题