Questions tagged [uislider]

A UISlider object is a visual control used to select a single value from a continuous range of values. Sliders are always displayed as horizontal bars. An indicator, or thumb, notes the current value of the slider and can be moved by the user to change the setting. Available in iOS 2.0 and later in UIKit.

UISlider commonly refers to the UISlider control used in iOS programming.

1582 questions
107
votes
16 answers

iPhone : How to detect the end of slider drag?

How to detect the event when the user has ended the drag of a slider pointer?
DroidHeaven
  • 2,173
  • 3
  • 22
  • 31
95
votes
10 answers

Slide a layout up from bottom of screen

I have a layout hidden from the view. On a button click I want it to slide up from the bottom pushing the entire screen contents upwards, very similar to how whatsapp shows emoticons panel in chat screen. I have seen SlidingDrawer, that dosen't…
Babar
  • 2,656
  • 2
  • 25
  • 34
72
votes
6 answers

UISlider with increments of 5

How do I have my UISlider go from 1-100 in increments of 5?
Tyler29294
  • 721
  • 1
  • 5
  • 3
71
votes
3 answers

What gets called when a UISlider value changes?

Does a method get called when a UISlider's value changes? I want to be able to update a value based on the UISliders value, but only when it changes... Thanks for any help.
Michael
  • 959
  • 1
  • 8
  • 12
60
votes
6 answers

UISlider that snaps to a fixed number of steps (like Text Size in the iOS 7 Settings app)

I'm trying to create a UISlider that lets you choose from an array of numbers. Each slider position should be equidistant and the slider should snap to each position, rather than smoothly slide between them. (This is the behavior of the slider in…
Matias Vad
  • 1,465
  • 1
  • 15
  • 28
49
votes
6 answers

Implementing steps/snapping UISlider

I am trying to implement some form of snapping or steps with the UISlider. I have written the following code but it does not work as smooth as I hoped for. It works, but when the I slide it upwards it snap 5points to the right leaving the finger not…
LuckyLuke
  • 42,935
  • 77
  • 254
  • 416
44
votes
5 answers

iOS how to make slider stop at discrete points

I would like to make a slider stop at discrete points that represent integers on a timeline. What's the best way to do this? I don't want any values in between. It would be great if the slider could "snap" to position at each discrete point as…
gonzobrains
  • 7,198
  • 11
  • 73
  • 126
42
votes
5 answers

How to put UISlider vertical?

I want to put UISlider in vertically. I have no idea about this, so please help me for this.
MD.
  • 1,091
  • 4
  • 18
  • 27
39
votes
5 answers

Make UISlider height larger?

I've been searching for a way to make the UISlider progress bar taller, like increasing the height of the slider but couldn't find anything. I don't want to use a custom image or anything, just make it taller, so the UISlider doesn't look so thin.…
Josue Espinosa
  • 4,642
  • 14
  • 43
  • 80
38
votes
9 answers

UISlider with ProgressView combined

Is there an apple-house-made way to get a UISlider with a ProgressView. This is used by many streaming applications e.g. native quicktimeplayer or youtube. (Just to be sure: i'm only in the visualization interested) cheers Simon
endo.anaconda
  • 2,299
  • 4
  • 25
  • 50
36
votes
12 answers

How to get the center of the thumb image of UISlider

I'm creating a custom UISlider to test out some interface ideas. Mostly based around making the thumb image larger. I found out how to do that, like so: UIImage *thumb = [UIImage imageNamed:@"newThumbImage_64px.png"]; [self.slider…
willc2
  • 36,081
  • 24
  • 84
  • 99
34
votes
5 answers

UISlider to control AVAudioPlayer

I'm trying to implement a little function in my app. I am currently playing sounds as AVAudioPlayers and that works fine. What I would like to add is to control the sound's position (currentTime) with an UISlider: is there a simple way to do it ? I…
David Pollak
  • 367
  • 1
  • 3
  • 5
31
votes
7 answers

Change iPhone UISlider bar image

I'm using a UISlider in my app but I'd like to use a custom "look-and-feel" for it. I have changed the thumb to my own image but is there a way to change the bar also? I have a bar image I would like to use but can't see how to do this. I have…
Fogmeister
  • 70,181
  • 37
  • 189
  • 274
31
votes
1 answer

UISlider not animating in iOS7

When I switched from iOS 6 to iOS 7 design, I noticed that using the method setValue:animated: no longer animates the sliding process. Has anyone else came across this problem and found a solution? I'll just add some code to show I've done nothing…
Flying_Banana
  • 2,707
  • 2
  • 18
  • 35
29
votes
5 answers

Hide UISlider thumb image

I am trying to create a UISlider without the thumb image. How can I do this, this is my code so far: UISlider *sli = [[UISlider alloc] initWithFrame:progressView.frame]; [sli setThumbImage:nil forState:UIControlStateNormal]; [sli…
max_
  • 22,619
  • 38
  • 116
  • 207
1
2 3
99 100