For my application I'm using a TableView and using customized UITableViewCells.
I customized my cells via interface builder, not programmatically. Is there a way to also make the background color of my customized cell a gradient in the interface builder?
Thanks.
Create a simple view class with @IBInspectable properties.
...
Based on etayluz answer I changed the code a little bit by taking the layerClass property of a UIView into account, so you do not need a separate layer as a sublayer.
I think it is much cleaner and it also works with live updates in the Interface Builder.