How to give two thumbs for UISlider

How can we get the range between two thumbs in UISlider. My application contains a choice of price range. I have not received a single thumb. Here I need to show the range above the labels above the thumbs, also these labels are inside the images.

+4
source share
1 answer

We cannot give two thumbs for one slider, because we cannot change the interface. But we can give with our own design. To do this, we must first take two buttons and two UIView. We need to change the positions of the buttons according to the user touch, and also change the width of the user interface based on the positions of the buttons. We have a third-party frame that works like NMRangeSliderand VPRangeSlider.

+6
source

Source: https://habr.com/ru/post/1672988/


All Articles