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!
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看不到,要一直向上拉才能看到。怎么处理?