我在我的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