BlackM
BlackM

Reputation: 4065

tvOS - Replacing UISlider

I am extending an iOS app for tvOS.

On iOS app I have a lot of sliders (two-sided slider to choose a range for years eg. 1950-2010. or values from 0.1 to 10.0).

I was wondering how I am supposed to replace this functionality on tvOS. My initial thought was to override the volume buttons of Siri remote and change the values but I don't believe that Apple would allow that.

Any recommendations?

Upvotes: 5

Views: 2596

Answers (2)

Shaked Sayag
Shaked Sayag

Reputation: 5792

You could also use a UIProgressView and a UIPanGestureRecognizer. When the user swipes left or right, you can change the progress of the UIProgressView accordingly.

Upvotes: 0

BlackM
BlackM

Reputation: 4065

My solution to this problem was to implement 2 buttons (arrow icons). One for increasing and one for decreasing the year value. enter image description here

Upvotes: 5

Related Questions