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
14
votes
2 answers

iOS 7 - UISlider thumbTIntColor does not change

I am trying to change the Color of the Thumb on my UISlider - Somehow though, it always stays white. Changing the Color of the Bar itself seems to work quite well. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after…
Martin Lang
  • 831
  • 11
  • 20
14
votes
4 answers

UISlider thumbTintColor doesn't change on iOS 7 (fine on iOS 6)

I have an app that runs perfectly on iOS 6. I've set a blinking effect to a UISlider's thumb this way: -(void)startBlinkingSlider{ isSliderBlinking = YES; isSliderTinted = NO; [self performSelector:@selector(toggleSliderColor)…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
13
votes
2 answers

Custom Range/Variable Set with jQuery UI Slider

I wanted to see if I could make a custom data set to use with jQuery UI Slider. I'm working on a site that has dress sizes that come in the range of: [ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 16W, 18W, 20W ] The issue I'm having arises right after 18,…
Mike B.
  • 773
  • 3
  • 12
  • 26
13
votes
4 answers

UISlider inside UIPageViewController

I have a PageViewController which is initialized like this: self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll …
12
votes
5 answers

Customize UISlider (track image height)

I'm customizing a UISlider. I could set a custom thumb image that is higher than the usual thumb however I could not make the track higher when setting a higher minimum track image but the track height remained the same. It should be possible as in…
user997128
  • 121
  • 1
  • 1
  • 3
12
votes
2 answers

Swift: How can I change the size of Thumb Image on UISlider based of the value of the slider?

I haven't found an answer for this in Swift. I have a UISlider that changes the value of a brush size for a drawing app I'm making. I want the size of the thumb image to update depending on the value of the slider's thumb position. Here's a…
Steven Schafer
  • 834
  • 3
  • 10
  • 24
12
votes
2 answers

How to show value of UISlider as Integer

The value of the UISlider currently shows as a float. How do I show it as an integer? sliderCtl = [[UISlider alloc] initWithFrame:frame]; sliderCtl.minimumValue = 1; sliderCtl.maximumValue = 15; sliderCtl.continuous = NO; …
RAGOpoR
  • 8,118
  • 19
  • 64
  • 97
11
votes
1 answer

UISlider ignores alpha when set to 0.5

Why does the UISlider view ignore the alpha view when set to 0.5? Code: for (int i = 0; i < 3; i++) { UISlider *slider = [[[UISlider alloc] initWithFrame:CGRectMake(0, i * 30, 200, 30)] autorelease]; …
Mattias Wadman
  • 11,172
  • 2
  • 42
  • 57
11
votes
3 answers

UISlider with thumb center over the start and end of track

The default behaviour of UISlider is that its thumb isn't centered on start/end of track. Like below: I would like to modify it's behaviour to get: where thumb's center can be positioned on start or end. I have tried to cover start/end with empty…
Fishman
  • 1,737
  • 1
  • 25
  • 42
11
votes
3 answers

UISlider behaviour in iOS7 versus iOS6

I noticed that UISlider in iOS7 behaves differently than it did in iOS 6 and iOS 5: Say you have a slider with min=0 and max=10, current value is 0. When you first touch the "knob", a valueChanged message is sent with slider.value=0.269 (instead of…
Gereon
  • 17,258
  • 4
  • 42
  • 73
11
votes
3 answers

jquery ui slider display values

I have a slider with values 1 - 5. it updates a hidden input with the ID of 'days'. $(function() { $("#slider").slider({ value: 3, min: 1, max: 5, step: 1, slide: function(event, ui) { …
Vince Lowe
  • 3,521
  • 7
  • 36
  • 63
11
votes
5 answers

Touch on UISlider prevents scrolling of UIScrollView

I have a (vertical) UISlider inside a UIScrollview. I'd like to be able to change the value of the slider, and, without lifting my finger, scroll the scrollview left or right. Desired behavior: Touch down inside vertical UISlider, followed by a…
morgancodes
  • 25,055
  • 38
  • 135
  • 187
10
votes
1 answer

Align UISlider thumb image

I've customized my UISlider but my thumb image looks strange, I mean it's position not aligned by center: But should be like this: And here is code: UIImage *leftTrack = [[UIImage imageNamed:@"blueTrack.png"] stretchableImageWithLeftCapWidth:3…
Timur Mustafaev
  • 4,869
  • 9
  • 63
  • 109
10
votes
7 answers

Customizing UISlider look

To customize the visual look of a UISlider you can set the thumb and track images. Part of the track images gets stretched to the appropriate with. From the documentation: A stretchable region sits between two end cap regions. The end caps…
tcurdt
  • 14,518
  • 10
  • 57
  • 72
10
votes
5 answers

Jumpy UISlider when scrubbing - Using UISlider with AVPlayer

I am using AvPlayer and am trying to set up a slider to allow scrubbing of audio files. Im having a problem with the slider jumping all over the place when its selected. It then goes back to the origin position for a second before going back to…
Pippo
  • 1,439
  • 1
  • 18
  • 35