Smooth UITableView Cell Expansion With Accordion Style

前端 未结 1 1759
野的像风
野的像风 2021-01-25 02:33

My table view can expand and collapse cells when they are pressed, but the content that appears when the cell expands loads before the animation is finished.

What I am l

相关标签:
1条回答
  • 2021-01-25 02:47

    One approach is to have your cell clip subview content that would expand outside of itself:

    let cell = self.tableView.dequeueReusableCellWithIdentifier("cell") as! HistoryTableViewCell
    cell.clipsToBounds = true
    
    0 讨论(0)
提交回复
热议问题