ios将UIScrollView滚动条颜色更改为不同的颜色 [英] ios Changing UIScrollView scrollbar color to different colors

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

问题描述

我们如何将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.

非常感谢

推荐答案

不幸的是你当然不能你可以随时自己动手。这些是您的选择:

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指示器的样式为白色且小于默认样式。这种风格适用于黑色内容背景。

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆