I want to build post-comment interface like facebook. In storyboard scene, the superView
has 2 parts (Content View and Comment Section). Content View contains the scrollView
which has all of the elements inside it, include the tableView
which shows user comments. My problem is that i dont know how to auto layout scrollView to fit with it's content inside. Please show me how to do ? Thank for your helping !!!
您使用的方法之一是在Controller swift文件中为容器视图的高度限制设置出口,并通过计算帖子的高度+显示的评论数*评论的高度来更新它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.