LICustomActionSheet 0.1.3

LICustomActionSheet 0.1.3

vishal dodiya 维护。



  • vvdodiya

LICustomActionSheet

==================================

LICustomActionSheet 提供使用不同类型动作表的简单方法。

CI Status Version License Platform

示例

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

安装

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

pod 'LICustomActionSheet'

如何使用

  1. 在您的类中导入 LICustomActionSheet 以使用 LICustomActionsheet。

     import LICustomActionSheet
    
  2. 使用 create() 方法创建 LICustomActionSheet 的对象,如下所示

     var objCustomActionSheet = LICustomActionSheetVC.create()
    
  3. 要显示简单的 Call loadActionSheet() 使用 LICustomActionSheet 的对象

     objShowGetImageActionSheet.loadActionSheet(fromView: self, arrEmoji: nil, arrActionData: arrActionData, type: .regular)
    

在这里,

  • fromView : fromView 是您的类对象,用于处理 LIActionsheet 的委托方法。此参数是必需的。

  • arrEmoji: 如果您想显示表情符号动作表,则需要传递表情符号名称的数组,并需要在您的项目中添加图像。

  • arrActionData: arrActionData是您想在动作面板中显示的动作名称的数组。

  • type: 您可以设置动作面板的类型。例如:常规和按节展示

自定义

颜色

actionButtonTextColor - LICustomActionSheet按钮的标准颜色

cancelButtonTextColor - 取消按钮的颜色。

示例

作者

Vishal Dodiya

@Logistic Infotech Pvt Ltd.

许可权

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