hexiaoyi
hexiaoyi

Reputation: 251

using to layout tableView's with masonry

My tableView isn't fullscreen or set with static height. It needs to change tableView's cell height after data is returned from server. So how can I layout my tableView with masonry ?

Upvotes: 0

Views: 255

Answers (1)

ZeroOnet
ZeroOnet

Reputation: 15

You should add a layout about tableView's height. When you get a newest height and then change layout's constant. In your code, you can call layoutSubviews in tableview owner after finishing network loading.

Upvotes: 0

Related Questions