Commit 2459a348 authored by David黄金龙's avatar David黄金龙

一处 代码优化

parent 0dbae644
......@@ -250,6 +250,9 @@ extension YHPreviewMainViewController : UITableViewDelegate,UITableViewDataSourc
let cell = UITableViewCell()
cellView.view.frame = CGRect(x: 0, y: 0, width: cell.contentView.bounds.size.width, height: myCellHeight)
cell.contentView.addSubview(cellView.view)
cellView.view.snp.makeConstraints { make in
make.edges.equalTo(0)
}
return cell
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment