作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
因此在第 I 部分的标题中创建一个自定义 View 并将其返回以显示(该函数返回一个 UIView)
View 已显示并且在应用程序中表现正常,但是每当我调用 headerViewForSection 时,我都会返回 nil
最佳答案
这让我有点挂了但是我想发个帖子来帮助别人,函数 headerViewForSection()
和 footerViewForSection()
实际上返回一个值键入 UITableViewHeaderFooterView?尽管在
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView?
如果您想要检索它,操作系统将不会返回任何接受 UITableViewHeaderFooterView 类型或子类的内容。希望这对某些人有帮助
关于ios - headerViewForSection 和 footerViewForSection 总是返回 nil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33655463/
因此在第 I 部分的标题中创建一个自定义 View 并将其返回以显示(该函数返回一个 UIView) View 已显示并且在应用程序中表现正常,但是每当我调用 headerViewForSection
我是一名优秀的程序员,十分优秀!