A typical toggle button has two states: on and off.
It's useful when you want a user to choose one of two options. The most common toggle button we see is the checkbox. In this tutorial, I am going to create an iPhone-like on and off switch.
I'll start by examining the interface and discussing how it will work. Then I'll create a custom Toggle class that will handle the user interaction. At the end of this tutorial, you should have a reusable and skinable toggle button.

