Open Source iOS Component For Sliders With Customizable Value Markers

I’ve mentioned a number of custom open slider components most recently this component for creating circular range sliders and this component for creating themeable range sliders.

Here’s an open source component providing a customizable slider with markers set at specified values called JMMarkSlider.

JMMarkSLider allows you to easily set two different colors to show whether values are selected or unselected, and allows you to set mark positions, color and width like in this code example from the readme:

self.firstSlider = [[JMMarkSlider alloc]initWithFrame:CGRectMake(0, 0, 284, 31)];
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];
[self.view addSubview:self.firstSlider];

Here’s an image showing several created JMMarkSlider’s from the readme:
JMMarkSlider

You can find JMMarkSlider on Github here.

A nice library for creating customized sliders with markings.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source iOS Component For Sliders With Customizable Value Markers

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *