我想,作爲第一個把圖像視圖表視圖的背景,並選擇我執行image.then考慮下面的代碼將出現:iphone:如何設置表格的背景圖片
table.backgroundColor = [UIColor clearColor];
,並明確自定義單元格標籤,但它與表格值重疊。
我想,作爲第一個把圖像視圖表視圖的背景,並選擇我執行image.then考慮下面的代碼將出現:iphone:如何設置表格的背景圖片
table.backgroundColor = [UIColor clearColor];
,並明確自定義單元格標籤,但它與表格值重疊。
這對我的作品
UIImageView *tempImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
[tempImg setImage:[UIImage imageNamed:@"IMG_0071.JPG"]];
[testTableView setBackgroundView:tempImg];
謝謝你的作品 – Developer
你需要在UIImageView上使用透明的UITableView。將圖像放入圖像視圖中,並且它看起來像表格的背景圖像
您可能想嘗試將UIImage放在UITableView後面。在視圖上使用方法insertView:atIndex:
。
也..你可能由馬特·加拉格爾 http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
想看看這個教程你要清楚tableviewcell背景顏色。您必須在return cell;
聲明之前編寫此代碼。
cell.backgroundColor = [UIColor clearColor];
並且還有表格單元格的標籤顏色。
你實際上可能想要把表視圖背後的圖像視圖。 –
請澄清你的問題bcoz我無法理解你說什麼 –