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.

1610 questions
125
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,414
  • 3
  • 25
  • 31
103
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,786
  • 3
  • 25
  • 35
78
votes
7 answers

UISlider with increments of 5

How do I have my UISlider go from 1-100 in increments of 5?
Tyler29294
  • 781
  • 1
  • 5
  • 3
75
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.
Michael
  • 1,009
  • 1
  • 9
  • 12
65
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,683
  • 1
  • 18
  • 28
57
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
  • 47,771
  • 85
  • 270
  • 434
47
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,856
  • 14
  • 81
  • 132
44
votes
5 answers

How to make a vertical UISlider?

I want to use a vertical UISlider. I have no idea about how, so please help me.
MD.
  • 1,131
  • 4
  • 18
  • 28
43
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
  • 5,009
  • 16
  • 47
  • 81
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,449
  • 4
  • 29
  • 55
37
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
  • 38,991
  • 25
  • 88
  • 99
35
votes
8 answers

How to make UISlider default thumb to be smaller like the ones in the iOS control center

I'm working on an app and I have a custom UISlider. However, I'm having some issues on how to make the default thumb to appear smaller like the ones in the iOS control center. Note that I want the same iOS thumb, not a custom thumb image. So far,…
UI Scuti
  • 375
  • 1
  • 3
  • 5
34
votes
7 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
33
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_
  • 24,076
  • 39
  • 122
  • 211
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
  • 76,236
  • 42
  • 207
  • 306
1
2 3
99 100