I am customizing an UISlider for my app. I want the slider to be in vertical orientation, but the default UISlider is in horizontal orientation. I couldn’t find how to change a UISlider‘s orientation.
How can I make a vertical slider in XCode?
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.
By default, a UISlider is horizontal (–). If you wish to make it vertical (|) then you must do this programmatically, probably with a
CGAffineTransform. For example, you can add this snippet toviewDidLoador wherever you deem appropriate: