我正试图为UITableView
制作页脚视图,但我正面临这些问题
UITableView
制作页脚视图。我知道我可以在Nib中单独进行设计。所以我做到了。现在我不知道如何加载该页脚作为UITableView
粘性页脚。TextField
和Button
TextField
会出现问题,因为键盘会掩盖它们,用户将无法看到他正在键入的内容。请告诉我怎么办?
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footerView = tableView.dequeueReusableCell(withIdentifier: "FooterView") as! FooterTableViewCell
return footerView
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 100
}