Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

UITableViewCells get frame after scroll

I want to code a spotlight instructions and spotlight tableview cells with correct frames. I can get frames of cells but after scrolling I can not get the new frames. It gives me old frames. I used tableView.layoutifneeded() or cell.layoutIfNeeded() but it does not change anything, it still give old frames.

getting frame like :

cell.frame

and scrolling with this code:

tableView.scrollToRow(at: scrollIndex, at: .bottom, animated: true)

Comments