I am currently having a problem with displaying two different types of custom cells on the same uitableview.
What I have managed so far, is receiving the \"updates\" to
You should return total number of rows
in your numberOfRowsInSection
method. so you can return summation
of your both array's count something like,
return updates.count + updatesTask.count
now in your cellForRowAtIndexPath
method you can differentiate your cell something like,
let cell:updateTableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! updateTableViewCell
let cellTask:tasksTableViewCell = tableView.dequeueReusableCellWithIdentifier("TaskCell", forIndexPath: indexPath) as! tasksTableViewCell
if indexPath.row % 2 == 1 {
//your second cell - configure and return
return cellTask
}
else
{
//your first cell - configured and return
return cell
}