BaHaActionSheet 1.1.2

BaHaActionSheet 1.1.2

wayne维护。



  • Wayne

iOS-BHActionSheet

示例

Alert表单

弹出视图

使用方法

易于使用,类似于UIAlertController

基本用法

let actionSheet = BahaActionSheet.bulider()
actionSheet.addAction(Action(ActionData(title: "add to cart"), handler: { (action) in
        //Action is tapped
}))
present(actionSheet, animated: true, completion: nil)

弹出视图

BahaActionSheet.bulider(sourceView: button)

也可以使用点位置

BahaActionSheet.bulider(point: CGPoint(x: 30,y: 30))

安装

CocoaPods

请在 cocoapods.org 上的“开始”选项卡中查看。要在项目中使用 BaHaActionSheet,请将以下 'Podfile' 添加到您的项目中:

pod 'BaHaActionSheet'

系统需求

  • Xcode 9
  • Swift 4
  • iOS 9.0+

许可证

BaHaActionSheet 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。