So this problem is pretty weird and a little difficult to describe. Essentially I have a UITableView
where each cell has an image, and a UIView
covering part of the image. The UIView
has it's background colour set to about 30% transparent white, giving it the appearance of washing out the image beneath. There's also some labels and such on it. All these views are added to a single parent container view, which is finally added to the cell's contentView
. This all works fine - until I try to select the cell. For some reason, whenever the cell is highlighted, the backgroundColor
property on each and every one of those views is set to clear, until the cell is unhighlighted (at which point the old colour returns).
Can anyone explain why this happens, and more important if there's a way to fix it? At most I could create a single pixel image of white, turn the UIView
into a UIImageView
, and set it's image to that pixel - but that's inelegant at best. Any suggestions?