开发者

UITableViewCell text disappearing on selection

开发者 https://www.devze.com 2023-03-24 07:59 出处:网络
I have a custom UITableView Cell which uses a custom view called GradientView for the backgroundView of the cell. it is set in theif (cell == nil) function.

I have a custom UITableView Cell which uses a custom view called GradientView for the backgroundView of the cell. it is set in the if (cell == nil) function. I had an issue with the contents of the cell duplicating to other cells, so I added the programic label creation to GradientView. I simply used [self addSubview:label]; to add it. I also had a gradient that is drawn on self.layer. here is the 开发者_开发技巧full source for GradientView: http://pastie.org/2308803

The labels are set from the root view controller, by specifying their tag. They display fine in the tableview, but when I highlight a cell, the cell goes completely blue. the lables ar invisible, all you see is blue. When you deselect it is back to normal. Could someone please help me with this issue?

0

精彩评论

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