美文网首页
swift UITableView viewForFooterI

swift UITableView viewForFooterI

作者: 喵喵粉 | 来源:发表于2020-04-10 22:26 被阅读0次
  1. 在代码629行设置高度的代理返回CGFloat.leastNonzeroMagnitude
image.png
  1. 效果如下,section footerView仍然能显示,在iOS 11系统没出现
image.png
  1. 通过层级图,看到section footerView高度为0了,只是子视图的button依然显示了
image.png image.png
  1. 方法
  • 1). 设置clip to bounds
image.png clip to bounds

相关文章

网友评论

      本文标题:swift UITableView viewForFooterI

      本文链接:https://www.haomeiwen.com/subject/kbtjmhtx.html