Skip to content

f2m2/NMRangeSlider

This branch is 6 commits ahead of Morkrom/NMRangeSlider:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Michael Mork
Feb 19, 2014
6c9bb45 · Feb 19, 2014

History

42 Commits
Oct 10, 2013
Feb 19, 2014
Feb 19, 2014
Aug 5, 2012
Sep 30, 2013
Aug 4, 2012
Oct 10, 2013
Feb 19, 2014
Oct 10, 2013
Aug 5, 2012

Repository files navigation

NMRangeSlider


NMRangeSlider is custom iOS control that gives you a UISlider like UI for selecting a range of values. This project was inspried by: https://github.com/buildmobile/iosrangeslider.

The range slider can be configured using a set of images in much the same way as UISlider. (Background, Track and Thumbs)

In addition to the regular UISlider features it can:

  • Handle stepped values. The handles will snap to points along the slider with a couple different options
  • Access to the centre location of handle image. This can be used to arrange subviews.
  • (New) Disable lower handle so it behaves like a regular UISlider but still use other features.
  • (New) Set a negative min range so the thumbs can cross over. (with custom track image)
  • (New) Automatic iOS 7 theme with tint color support

See the demo application for some examples on how the to configure the slider.

Screenshot

TODO

If anyone would like to help here a few things I would like to add:

  • Custom images for other control states. UISlider lets the user set different images for any number of UIControlStates.
  • Have a designer provide a few more sample graphics.
  • Ability to set a tint colour that is applied to the default images (or drawn using CoreGraphics)

Authors

License

Copyright 2012 Null Monkey Pty Ltd

Licensed under the MIT License, enjoy!

About

A custom range slider for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 100.0%