Latest 1.0.9
Homepage https://github.com/Amornthep/DumpActionSheetPicker
License MIT
Platforms ios 9.0
Authors

Simple picker in actionsheet

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate DumpActionSheetPicker into your Xcode project using CocoaPods, specify it in your Podfile:

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

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

Then, run the following command:

$ pod install

Usage

Example

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()

DumpActionSheetPicker

Setting

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()

Latest podspec

{
    "name": "DumpActionSheetPicker",
    "version": "1.0.9",
    "summary": "Simple picker in actionsheet.",
    "description": "Simple multiple picker in actionsheet.",
    "homepage": "https://github.com/Amornthep/DumpActionSheetPicker",
    "license": "MIT",
    "authors": {
        "Amornthep": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Amornthep/DumpActionSheetPicker.git",
        "tag": "1.0.9"
    },
    "source_files": "DumpActionSheetPicker",
    "resource_bundles": {
        "DumpActionSheetPicker": [
            "DumpActionSheetPicker/*.{storyboard,xib}"
        ]
    },
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This