If I create a background image for my table cell in the init method of my UITableViewCell subclass, the image comes out exactly how I drew it, and tableView:heightForRowAtIndexPath:
simply adds a gap around it.
But if instead I create the background image in my tableView's tableView:cellForRowAtIndexPath:
method and set it, changing the cell height will now stretch the image.
I need to create the background views in the cellForRowAtIndexPath
method, as the background changes for different rows. How can I make my image's size fixed again?