domesticcatsoftware / DCRoundSwitch

A 'modern' replica of UISwitch.
MIT License
765 stars 162 forks source link

Add class methods to simplify subclassing #16

Closed PeteC closed 12 years ago

PeteC commented 12 years ago

I needed to change the look of the knob layer in an app I was developing but there was no simple way to do this.

These commits add class methods to the switch that allow subclasses to specify different classes to use for each layer. I've added an example switch subclass to the demo app to show how these would be used.