ios 将 UIScrollView 滚动条颜色更改为不同颜色

时间:2022-12-02
本文介绍了ios 将 UIScrollView 滚动条颜色更改为不同颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How can we change color of UIScrollview's scroll indicator to something like blue, green etc.

I know we can change it to white, black. But other then these colors.

Many Thanks

解决方案

Unfortunately you can't, of course you can always roll your own. These are your options:

UIScrollViewIndicatorStyleDefault:

The default style of scroll indicator, which is black with a white border. This style is good against any content background.

UIScrollViewIndicatorStyleBlack:

A style of indicator which is black and smaller than the default style. This style is good against a white content background.

UIScrollViewIndicatorStyleWhite:

A style of indicator is white and smaller than the default style. This style is good against a black content background.

这篇关于ios 将 UIScrollView 滚动条颜色更改为不同颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

上一篇:交叉方向 UIScrollViews - 我可以修改滚动行为吗? 下一篇:UIScrollview 自动布局问题

相关文章

最新文章