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模板网!
iOS - 使用故事板和自动布局使 UIScrollView 居中iOS - Using storyboard and autolayout to center the UIScrollView(iOS - 使用故事板和自动布局使 UIScrollView 居中)
从 imageview 点击手势获取索引或标签值get index or tag value from imageview tap gesture(从 imageview 点击手势获取索引或标签值)
无论内容大小如何,UIScrollView 都不会滚动UIScrollView not scrolling regardless of large contentSize(无论内容大小如何,UIScrollView 都不会滚动)
清除分页 UIScrollView 中的自动旋转转换Clean autorotation transitions in a paging UIScrollView(清除分页 UIScrollView 中的自动旋转转换)
UIScrollView 使用自动布局缩放UIScrollView zooming with Auto Layout(UIScrollView 使用自动布局缩放)
如何从 UIView/UIScrollView 创建图像How to create an image from a UIView / UIScrollView(如何从 UIView/UIScrollView 创建图像)