UITableViewCell背景图片
问题描述:
我对UITableviewCell有个小问题。我正在使用的代码:UITableViewCell背景图片
UIView *cellBackView = [[UIView alloc] initWithFrame:CGRectZero];
cellBackView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"Navigation.png"]];
cell.backgroundView = cellBackView;
但看看发生了什么; http://cl.ly/070f1C3n143v0W1Y2g2Q
有人知道如何解决它?
答
这是因为在路上(在背景前)标签的 添加这一点,它应该是固定的
cell.textLabel.backgroundColor = [UIColor clearColor];