Tutorial: How To Extend UIControl And Build Your Own Custom Range Slider Component

You’ve probable seen situations in other apps, or perhaps even in your own where two sliders were used to configure the minimum and maximum parameters of a setting.

If you have then you have probably thought it would be great if there was a control with two scrubbers providing minimum/maximum settings.

I’ve come across an excellent tutorial showing step by step how to build a control that looks like it would fit right in with any other native controls.

What I like about this tutorial is that the author covers every step showing how he extended UIControl in building his custom component, and ultimately providing the source code for us to look at.

The tutorial is by Mal Curtis, and you can find it in two parts here:
iOS Range Slider Part 1
iOS Range Slider Part 2

The source can be found on Github here:
https://github.com/buildmobile/iosrangeslider 

A great guide if you would like to learn how to build your own drop-in custom iOS component.

iOS 5 by tutorials provides an extensive collection of hands-on tutorials (over 600 pages) with source code examples to help you understand the new APIs as quickly as possible.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>