I want to implement horizontal knob where user can set the value moving the knob


Here as shown image how to set the distance value from picker (horizontal nob)?
How can I achieve that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would use an UIPickerView modified with CGAffineTransform – to scale it and rotate it by 90 degrees. That you would get the notifications on what component the user did select, by implementing the standard UIPickerDelegate methods.
You’d need to supply the labels by using the
method, and rotate them by -90 degrees to appear correctly aligned – also, the transformation applied to the picker could distort the views too, so you’d may have to upscale them.
It would take some trial and error to make it look perfect, but it seems easily doable. And I think that’s what they used in the example you provided.