[ad_1]
I am making an attempt to Conceal a cell from a UITableView.
I do know that UITableViewCell has a property referred to as “Hidden” however after disguise i do not need white area. I would like the packing containers to be shut collectively.
Func cellForRowAt
i already disguise cell like this
let advert: HistoryList = finishData[indexPath.row] as! HistoryList
cell.setupUI(advert: advert, indexPath: indexPath, isfinish: true)
if advert.result_id == nil || advert.result_id == "" {
cell.isHidden = true
}
else { cell.isHidden = false }
Func heightForRowAt
i set top = 0
var rowHeight:CGFloat = 0
if finishedData.depend > 0 {
let advert: HistoryList = finishData[indexPath.row] as! HistoryList
if advert.result_id == nil || advert.result_id == ""{
rowHeight = 0.0
} else {
rowHeight = 95
}
[ad_2]
