- 在代码
629
行设置高度的代理返回CGFloat.leastNonzeroMagnitude
![](https://img.haomeiwen.com/i13793643/1962bb9cef1c8904.png)
- 效果如下,
section footerView
仍然能显示,在iOS 11
系统没出现
![](https://img.haomeiwen.com/i13793643/100c8c341cb7337a.png)
- 通过层级图,看到
section footerView
高度为0
了,只是子视图的button
依然显示了
![](https://img.haomeiwen.com/i13793643/00e343a1b991e9e7.png)
![](https://img.haomeiwen.com/i13793643/f7ce9744a7cfcaf2.png)
- 方法
- 1). 设置
clip to bounds
![](https://img.haomeiwen.com/i13793643/452546329c757cad.png)
![](https://img.haomeiwen.com/i13793643/0c645bcc9419481c.png)
629
行设置高度的代理返回CGFloat.leastNonzeroMagnitude
section footerView
仍然能显示,在iOS 11
系统没出现section footerView
高度为0
了,只是子视图的button
依然显示了clip to bounds
本文标题:swift UITableView viewForFooterI
本文链接:https://www.haomeiwen.com/subject/kbtjmhtx.html
网友评论