DumpActionSheetPicker 1.0.9

DumpActionSheetPicker 1.0.9

Amornthep Chua-iam 维护。



  • Amornthep

DumpActionSheetPicker

在操作表中简单选择器

安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理器。您可以使用以下命令安装它

$ gem install cocoapods

要使用 CocoaPods 将 DumpActionSheetPicker 集成到您的 Xcode 项目中,请在您的 Podfile 中指定它

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'DumpActionSheetPicker'
end

然后,运行以下命令

$ pod install

用法

示例

import DumpActionSheetPicker

let actionSheet = ActionSheetPicker(title: "Title", items: [["1","2"],["3","4","5"],["3","4","5"]], target: self) { (index, value) in
            print("\(index) \(value)")
        }
actionSheet.show()

设置

init(title:String,items:NSArray,target:UIViewController,doneClick: @escaping ([Int],[String]) -> ())

open func setBackgroundColor(color:UIColor)
    
open func setPickerTextAttribute(attribute:[NSAttributedStringKey : Any])
    
open func setInitialSelection(selected:[Int])
    
open func setClickBackgroundEnable(isEnable:Bool)
    
open func onPickerValueChange(onChange:((_ index:[Int],_ value:[String]) -> ())?)
    
open func setPickerHeight(height:CGFloat)
    
open func setToolBarColor(color:UIColor)
    
open func setDoneButtonAttributedText(attributed:NSMutableAttributedString)
    
open func setPickerViewColor(color:UIColor)
    
open func setDoneButtonTitle(title:String)
    
open func setTitleLabelAttributedString(attributed:NSMutableAttributedString)
    
open func show()