There are a few similar questions on the site, but I\'m looking for something specific and slightly different.
I followed the direction given here: http://www.cimgf.
Instead of inserting a gradient layer, you can also override the method +layerClass to return the CAGradientLayer class. The layer of the button is than of that class, and you can easily set its colors etc.
+layerClass
CAGradientLayer
+ (Class)layerClass { return [CAGradientLayer class]; }