Create A Variable Speed Slider Similar To The Music App

The iPhone’s music app (the iPod app) has an interesting horizontal slider.  What makes it interesting is that while it looks like a typical UISlider the further away from the slider you get vertically the finer the adjustment made when you slide your finger horizontally.

This is interesting functionality, and allows users to gain finer accuracy when making adjustments.  Recently, Ole Begemann was responding to a question and created an open source, MIT lice’s nsed, replacement slider which you can drop into your apps that provides functionality similar to the slider within the iPod app.

You can find a video displaying the functionality, the download links for the source code, and an in-depth explanation of how the code operates on Ole’s blog here:
OBSlider, a UISlider subclass with variable scrubbing speed

It makes for a very handy piece of code to have around.

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

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

Leave a Reply

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