jasnig / ScrollPageView

简单快速灵活的集成类似网易新闻, 头条等带滑块的滚动视图,实现视图联动, 滑块, segment segmentController, scrollViewController
MIT License
355 stars 67 forks source link

子控制器是tableview时,滚动高度问题 #7

Open yujianfeikong opened 7 years ago

yujianfeikong commented 7 years ago

func setChildVCs() -> [UIViewController] { var childsVC: [ChildViewController] = [] for title in topTitleArray { let vc = ChildViewController() vc.title = title childsVC.append(vc) } return childsVC }

ChildViewController中有个tableview var contentTableView: UITableView!

运行后,tableview的可滚动高度变小了,最好2-3个cell看不到,要一直向上拉才能看到。怎么处理?

jasnig commented 7 years ago

设置tableView的contentInset.bottom, 或者使用autolayout布局