KVActionSheet 1.4

KVActionSheet 1.4

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2018年11月
SPM支持 SPM

Vu Van Khac 维护。



KVActionSheet

系统需求

  • iOS 8.0+
  • Swift 3.0 或更新版本

安装

KVActionSheet 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile

pod 'KVActionSheet', '~> 1.4'

用法

// MARK: - Initial
let actionSheet = KVActionSheet(delegate: self, dataSource: self)
actionSheet.show()
// MARK: - KVActionSheetDelegate
func actionSheetTableView(_ tableView: UITableView, didSelectRowAtIndexPath indexPath: IndexPath) {
    
}
// MARK: - KVActionSheetDataSource
func actionSheetTableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return 4
}
    
func actionSheetTableView(_ tableView: UITableView, cellForRowAtIndexPath indexPath: IndexPath) -> UITableViewCell {
    return UITableViewCell()
}
    
func actionSheetTableView(_ tableView: UITableView, heightForRowAtIndexPath indexPath: IndexPath) -> CGFloat {
    return 50
}
    
func actionSheetHeightOfContentView() -> CGFloat {
    return 200
}

作者

Vu Van Khac, [email protected]
我的Facebook: https://#/vuvankhac.official
我的Twitter: https://twitter.com/vuvankhac

许可协议

KVActionSheet采用MIT许可。有关更多信息,请参阅LICENSE文件。