Tip from @soundevolution: "You could make additional improvements by setting a flag in the -setButtonColor: method so that the layers are only reconfigured when the colour changes instead of doing it on every layout (which happens quite often when a view is a being animated.)."
Tip from @soundevolution: "You could make additional improvements by setting a flag in the -setButtonColor: method so that the layers are only reconfigured when the colour changes instead of doing it on every layout (which happens quite often when a view is a being animated.)."