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

标签 ios uiscrollview

我们如何将 Scrollview 滚动指示器的颜色更改为蓝色、绿色等。

我知道我们可以把它改成白色、黑色。但除了这些颜色。

非常感谢

最佳答案

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

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 滚动条颜色更改为不同的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12005187/

相关文章:

ios - 使用测量单位以编程方式获取功耗

ios - Swift: ScrollView 自动布局

ios - Swift:通过 UIView 识别滚动

ios - 应该如何处理分页 UIScrollView 中的多个委托(delegate)

ios - 将事件传递给 iOS Objective C 中的另一个对象

ios - 上下文菜单的 SwiftUI 自定义 View

ios - 另一个 uiscrollview 自动布局问题

ios - Cocos2d中如何添加iPhone6支持

xcode - 如何使用自动布局 beta 7 UIKIT 修复 xcode 11 中可滚动内容大小的歧义

iphone - 如何在 UIScrollView 中同时拖动和移动某些东西并滚动