2011-09-06 94 views
1

我想,作爲第一個把圖像視圖表視圖的背景,並選擇我執行image.then考慮下面的代碼將出現:iphone:如何設置表格的背景圖片

table.backgroundColor = [UIColor clearColor]; 

,並明確自定義單元格標籤,但它與表格值重疊。

+0

你實際上可能想要把表視圖背後的圖像視圖。 –

+0

請澄清你的問題bcoz我無法理解你說什麼 –

回答

3

這對我的作品

UIImageView *tempImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; 
[tempImg setImage:[UIImage imageNamed:@"IMG_0071.JPG"]]; 
[testTableView setBackgroundView:tempImg]; 
+0

謝謝你的作品 – Developer

1

你需要在UIImageView上使用透明的UITableView。將圖像放入圖像視圖中,並且它看起來像表格的背景圖像

1

想看看這個教程你要清楚tableviewcell背景顏色。您必須在return cell;聲明之前編寫此代碼。

cell.backgroundColor = [UIColor clearColor]; 

並且還有表格單元格的標籤顏色。