BKDropDown 1.0.5

BKDropDown 1.0.5

bugkingK 维护。



  • bugkingK

BKDropDown

类似于 Rx 的流的下拉 API

安装

CocoaPods

pod 'BKDropDown'

手动

Copy BKDropDown.swift, BKDropDown.storyboard to your project.

使用

let dropDown = BKDropDown.instance()
    .bind(["Item 1", "Item 2", "Item 3", "Item 4"])
    .setLayoutCell(normal: .white, highlight: .lightGray,height: 50)
    .setLayoutTitle(normal: .darkGray, highlight: .darkGray ,font: UIFont.systemFont(ofSize: 14))
    .setPadding(leading: 20, trailing: 20)
    .setDidSelectRowAt({ (idx, item, dropDown) in
        dropDown.hide()
    })
    .show(self, targetView: sender)

许可证

BKDropDown 在 MIT 许可证下可用。更多详情请查看 LICENSE 文件。