MPModalView 0.3.2

MPModalView 0.3.2

Martin Pfundmair 维护。



  • 作者
  • Martin Pfundmair

MPModalView

Version License Platform

示例

要运行示例项目,请克隆仓库,然后从 Example 目录首先运行 pod install

需求

安装

MPModalView 可通过 CocoaPods 获取。要安装它,只需在 Podfile 中添加以下行

pod 'MPModalView'

用法

let modal = MPModalViewController(actionButtons: [ActionButton(type: .cancel),
                                                  ActionButton(type: .ok) { print("some callback") }],
                                  contentView: .text(title: "Modal", body: "with OK & Cancel button"))
modal.presentOnTop()

作者

马丁·彭德迈尔,[email protected]

许可证

MPModalView 在 MIT 许可下提供。更多信息请见 LICENSE 文件。