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

UISlider Custom Thumb Shape

I want to modify a bit the UISlider. To be exact, I want the thumb to have a custom shape (square/rectangle with rounded corners and bottom shadow). The only answers that I found were something like "Create your own custom slider". But I don't know…
Lawrence413
  • 1,976
  • 1
  • 14
  • 28
10
votes
2 answers

Increase touch target size of UISlider with Swift

I managed to increase the thumb size of my UISlider with Swift but the touch zone is still too small for my application. How to programmatically increase the size of the touch zone for a UISlider? Should I re-implement a custom slider by…
Jojo56400
  • 309
  • 3
  • 12
10
votes
2 answers

UIslider thumb image doesn't start from the beginning

I am trying to implement a control to show progress of a video and I am using a UISlider with a custom thumb image but the thumb image doesn't start from the beginning and it doesn't go till the end as well. playerProgress = UISlider(frame:…
sachin irukula
  • 12,841
  • 4
  • 19
  • 19
10
votes
4 answers

bigger UISlider ok but tracking zone problem

My goal is to create a bigger UISlider with 35 pixels height for the thumb image. I subclassed UISlider and added the method : - (CGRect)trackRectForBounds:(CGRect)bounds { return CGRectMake(bounds.origin.x, bounds.origin.y,…
thierryb
  • 3,660
  • 4
  • 42
  • 58
10
votes
4 answers

How to change a UISlider value using a single touch?

I'm developing my first iOS app which contains a UISlider. I know how to get the value when the UISlider is dragged. But for my app I need to get the slider's value in a single touch; i.e. if I touch somewhere in the UISlider, a UILabel should…
Midas
  • 930
  • 2
  • 8
  • 20
10
votes
7 answers

Increment UISlider by 1 in range 1 to 100

I am new to iPhone, How do I have my UISlider go from 1 to 100 in increments of 1? slider = [[UISlider alloc] init]; [slider addTarget:self action:@selector(sliderChange:) forControlEvents:UIControlEventValueChanged]; [slider…
Krunal
  • 6,440
  • 21
  • 91
  • 155
9
votes
2 answers

about showing continuous slider value in UISlider

Here's what I want to do with UI Slider .... I have a bunch of files with times and I show them based on slider value. The problem is I want to show the slider value when the user is changing/moving the slider. In other words, the value should…
Ahsan
  • 2,964
  • 11
  • 53
  • 96
9
votes
6 answers

Setting interval value for UISlider

I need to set the interval value for an UISlider. Please help..
Manmay
  • 539
  • 2
  • 12
  • 28
9
votes
2 answers

AVPlayer currentTime update for a UISlider when ViewController load

I'm playing songs in AVPlayer. I have created a separate view controller for my media player and initialization, and all the methods that I'm using for the player (play, pause, repeat, shuffle) are there in the same view controller. I update a…
iDia
  • 1,397
  • 8
  • 25
  • 44
9
votes
2 answers

AVPlayer Slider seeking Backwards issue

I am using AVplayer to play videos in my app. I am using seekToTime:toleranceBefore:toleranceAfter: to seek through the video using a slider so the problem is when you slide in forward direction, video seeks perfectly (looks like video is moving…
iparag
  • 101
  • 3
9
votes
2 answers

How to change size of thumb image of UISlider programmatically

I would like to make the custom UISlider, something like this |o----------| -> |-----O------| -> |------------〇| the thumbImage will be small at the minimum value, it will increase the size during the slider value increase, otherwise it will…
AndyYeung
  • 105
  • 1
  • 1
  • 5
8
votes
5 answers

Simple JavaScript/HTML Slideshow

New to Javascript, but after some research it loks like this would be the best method in implementing my desired output. I'm trying to produce a slideshow of images (5 pre-selected images) that automatically change between 5 second intervals. Can…
TopChef
  • 43,745
  • 10
  • 28
  • 27
8
votes
2 answers

Customizing a slider control

I want to customize the slider control but can't find any thing to apply, the slider I want to make should be something like the following image. Please any one suggest me how can I make it.... .
iOS Monster
  • 2,099
  • 1
  • 22
  • 49
8
votes
0 answers

UISlider with tick marks (colored like the track)

I want to know the best way to do this: I have already done adding the marks as UIViews. Example: let tick = UIView(frame: CGRect(x: xPos, y: (slider.frame.size.height - 10) / 2, width: 2, height: 10)) tick.backgroundColor = UIColor.init(white:…
jopyesk
  • 111
  • 1
  • 5
8
votes
4 answers

How to add a gradient tint color to a UISlider in XCode 6?

I'm working on a design application that has a section for selecting colors by three sliders for RGB. As we can see in xcode, where we want to select a color by RGB values, the slider tint color is a gradient color that changes when we change the…
hmak.me
  • 3,770
  • 1
  • 20
  • 33