Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#swtws
final class HogeViewController: UIViewContoller {
private lazy var tableViewController: UITableViewController = {
let vc = UITableViewController(style: .Plain)
let tableView = vc.tableView
let tableFooterView = UIView()
tableView.tableFooterView = tableFooterView
tableView.rowHeight = 44
tableView.layoutMargins = UIEdgeInsetsZero
tableView.delegate = self
tableView.dataSource = self
self.addChildViewController(vc)
self.view.addSubview(vc.view)
vc.view.snp_makeConstraints { $0.edges.equalToSuperview() }
vc.didMoveToParentViewController(self)
return vc
}()
private var tableView: UITableView { return tableViewController.tableView }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.