-2

I want to add marks on UISlider using objective-c on specific point of UISilder.

Like this two dots/marks on slider

enter image description here

Nisar Ahmad
  • 1,987
  • 3
  • 13
  • 30
  • Just see if this helps you http://stackoverflow.com/questions/2379326/change-iphone-uislider-bar-image – swiftBoy Apr 11 '16 at 10:47
  • 2
    This question is too broad. What have you tried already? Please post your work-in-progress implementation. – JAL Apr 11 '16 at 10:52

1 Answers1

1

Hope this will help you:

then use below code:

self.firstSlider.markColor = [UIColor colorWithWhite:1 alpha:0.5];
self.firstSlider.markPositions = @[@10,@20,@30,@40,@50,@60,@70,@80,@90,@100];
self.firstSlider.markWidth = 1.0;
self.firstSlider.selectedBarColor = [UIColor grayColor];
self.firstSlider.unselectedBarColor = [UIColor blackColor];

There are many customization options are also available.

iVarun
  • 6,496
  • 2
  • 26
  • 34