2011年9月26日星期一

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

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.


©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.
DeliciousTwitterTechnoratiFacebookLinkedInEmail

没有评论:

发表评论