我有一個自定義單元格爲我的TableView,與它的ImageView。爲什麼我的ImageView僅在單元格高亮顯示時可見?
爲什麼ImageView的唯一可見當細胞被突出顯示?
這些細胞正是如此創建:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
Site *site = [self.dataController objectInListAtIndex:indexPath.row];
[[cell textLabel] setText:site.description];
return cell;
}
更改背景顏色 – amar
@amar要什麼?爲什麼這會有所幫助?目前圖像的背景是透明的。 – fredley
和圖像包含文本胸部? – amar