用户登录
用户注册

分享至

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

  • 作者: White55开解说
  • 来源: 51数据库
  • 2022-10-20

问题描述

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.

软件
前端设计
程序设计
Java相关