RightMuneTabel
示例
要运行示例工程,请先克隆仓库,然后在 Example 目录下运行 pod install
。
要求
如何使用
1. //右上角菜单按钮
let mune = RightMuneTable(frame: self.view.bounds)
mune.imageSource = [UIImage(named: "collection"), UIImage(named: "downLoad"), UIImage(named: "shareAction")] as? [UIImage]
mune.titleSource = ["收藏","下载","分享"] //,"分享","分享"
mune.selectedIndex = { [weak self] (index) in
if index == 1 {
}
}
mune.showInView(self.view)
2. 这个组件的意义所在:
RightMuneTabel 组件 作为 路由组件 “NicooSwiftRouter” 的测试组件而存在。 当点击 RightMuneTable的 item 时,与组件 “RouterTestModule” 通讯,模拟在组件中点击 ”收藏“ ,”vip下载“ 之类的需要用户登录后才能执行的操作。
安装
RightMuneTabel 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'RightMuneTabel'
作者
[email protected], [email protected]
许可协议
RightMuneTabel 在 MIT 许可协议下可用。有关更多信息,请参阅 LICENSE 文件。