0
我嘗試在我的視圖上實現2個UITableViews。兩個表都有不同的自定義細胞(表一個具有customcell一個表中的兩個具有customcell表。兩個具有不同CustomCells的UITableViews(一個用於table1,另一個用於table2)
我的cellForRowAtIndexPath不處理它
if (tableView == self.firstTableView)
{
static NSString *CellIdentifier.....
return cell;
}
else if (tableView == self.secondTableView)
{
tatic NSString *CellIdentifier.....
return cell;
}
我該如何處理我的問題?
THX
嗨,如何委派不同?我認爲我的解決方案與tableview == self。是這種不同的代表團嗎? –
請檢查此項目https://github.com/slysid/iOS/tree/master/TwoTableview。我認爲這是你需要的。我已經使用單視圖控制器來代表不同的數據源。 – slysid