UISlider - missing features - snap, tooltip and ticks

余生长醉 提交于 2019-12-02 10:22:43

1 + 2) Yes, there is no built-in snap functionality, but you can implement it yourself easily. Just catch the value-changed events of the slider, and update its value to the desired value. The action method for rounding the slider values can update a label displaying the value, too.

2 + 3) You must implement that by yourself. These features are very use case specific. UIKit is rather than a set of small building blocks for general purposes.

The UISlider documentation provided by Apple will help you to figure out what is and is not built in to UIKit's UISlider.

Specifically take a look at the section titled Customizing the Slider’s Appearance, that about sums it up for out-of-the-box customization.

Unfortunately, none of the items you listed are part of UISlider, but subclassing and building out that functionality would not be an issue.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!