Saturday, November 21, 2026
HomeiOS Developmentios - disguise UITableview cell and white area after disguise it

ios – disguise UITableview cell and white area after disguise it

[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
        }

enter picture description right here

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments