Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yujianfeikong opened this issue Oct 29, 2016 · 1 comment
Open

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

yujianfeikong opened this issue Oct 29, 2016 · 1 comment

Comments

@yujianfeikong
Copy link

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
Copy link
Owner

jasnig commented Oct 29, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants