2011-07-07 17 views
2

我有一個分組表格視圖。我以前做過幾十個桌面視圖,但我不確定這一行是什麼: enter image description here我的UITableView上的這行是什麼?

任何人都可以告訴我那是什麼以及如何刪除它?

UPDATE:

我縮小了問題的heightForRowAtIndexPath委託方法。看看下面的內容。請注意,我需要一些行更高:

-(CGFloat)tableView:(UITableView *)tableViewLocal heightForRowAtIndexPath:(NSIndexPath *)indexPath { 
    if(indexPath.section == 0 && (indexPath.row == 3 || indexPath.row == 4 || indexPath.row == 5)) { 
     return tableViewLocal.rowHeight * 1.3; //If I remove the multiplier, it doesn't produce the line. 
    } 
    else 
     return tableViewLocal.rowHeight; 
} 

回答

0

它看起來像背景。嘗試在代碼中設置你的tableView到

self.tableView.backgroundColor = [UIColor clearColor]; 

希望這會有所幫助。

+0

好吧,它刪除線,但我真的想擁有分組stlye背景。使用上面的代碼基本上會給我一個白色的背景。 –

+0

有點亂七八糟,但如果沒有別的工作,你可以把UIView放在它後面,背景顏色像這樣設置:'view.backgroundColor ='[UIColor groupTableViewBackgroundColor];' –

+0

我不認爲把UIView放在你的自定義後面tableview單元格。聽起來是一個好主意。 – Jamie

相關問題