我在我的iOS应用在它的一些信息,一个UITableView。我改变了选择的背景色使用下面的代码clearcolor:IOS的UITableView细胞选择的背景
UIView *bgColorView = [[UIView alloc] init];
[bgColorView setBackgroundColor:[UIColor clearColor]];
[cell setSelectedBackgroundView:bgColorView];
[bgColorView release];
有文本,并在小区2个图像,我已经建立这个使用CGRectMake。 但是,当我选择并按住表格单元格时,图像消失在看起来像白色背景的背后。
正如你可以看到我拿着“Dacnusa sibrica”单元,我该如何解决这一问题?
如何将图像添加到单元格中? –
我添加使用VAR1图像= [[ALLOC的UIImageView] initWithFrame:方法VAR2];和[cell.contentView addSubview:var1]; – Daniel