开发者

When custom UITableViewCell gets highlighted, it all turns blue

I have created a custom uitableviewcell using a xib file. the cell contains a view which contains a couple of labels and an image. it all works great, even resizing, but when I select the cell instead of just the background view ( the view containing the labels and etc ) turning blue, the entire cell gets filled with blue.

How can I solve this?

Tnx!开发者_StackOverflow


This is the default behaviour for selecting a cell. Within your xib you can change the selected-color of your cell (it's a property within object inspector). If you want the blue color to disappear you could set its alpha channel and so it will not be visible any more.
Or you pick another color, it's up to you :)


Make sure you are assigning your custom view to the contentView property of the table view cell.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜