国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

ios - UICollectionView is nested in UITableViewCell and I hope the height of the former changes according to the height of the latter
phpcn_u1582
phpcn_u1582 2017-05-16 13:19:36
0
3
917
The layout method in

UICollectionView is similar to waterfall flow, and the contentSize of UICollectionView is determined according to the size of the text. I hope that the height of UITableViewCell can change according to the height of UICollectionView. How can I do it?

phpcn_u1582
phpcn_u1582

reply all(3)
過(guò)去多啦不再A夢(mèng)

If you want to automatically calculate the tableview cell height, it is difficult to do it.
You can first calculate the overall height of the collectionView, and then update the tableview cell height.
For smoothness, the height can be cached.

漂亮男人

UICollectionView的高度、UITableViewCell height?
Is it possible that the question was asked wrongly, and I didn’t understand the scene selection expressed by the poster?

巴扎黑

Write a cgfloat attribute in the tableview to record the height of the collectionview, and assign the value in the heightForRow method in the controller. It should be fine

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template