FlexibleTable
使用Swift编写的FlexibleTable。您可以轻松地为表添加可定制的头部视图。
要求
- iOS 10.0+
- Xcode 11.0+
- Swift 5.0+
安装
FlexibleTable可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中
pod 'FlexibleTable'
使用
tableView.stickyHeader.view = YourUIView()
tableView.stickyHeader.height = 300
tableView.stickyHeader.minimumHeight = 100
如果您想要添加默认的掩码
tableView.stickyHeader.maskColor = UIColor.black.withAlphaComponent(0.7)
如果您想要添加自己的自定义掩码视图,而不是掩码颜色
tableView.stickyHeader.maskView = YourMaskView()
FTDelegate 协议
func didMaskViewAlphaChange(alpha: CGFloat)
FTDelegate 闭包
var didMaskViewAlphaChange: ((CGFloat) -> Void)?
作者
Yusuf Demirci, [email protected]