项目作者: aguilarpgc

项目描述 :
UIViewController container for UIPickerView
高级语言: Swift
项目地址: git://github.com/aguilarpgc/PGCPickerController.git
创建时间: 2018-10-12T20:14:20Z
项目社区:https://github.com/aguilarpgc/PGCPickerController

开源协议:MIT License

下载


PGCPickerViewController

Swift
License
Platform

Installation

Manual

Add PGCPickerViewController folder into your project.

Usage

Check folder Example :)

Single (one component)

Conforms to PickerSingleOption protocol

  1. let pickerSource: PickerSingleOption!
  2. // ...
  3. let controller = PGCPickerViewController.with(pickerOption: pickerSource) { [weak self] (indexSelected) in
  4. self?.pickerSource.currentIndexSelected = indexSelected // Save selection
  5. // Do stuff with indexSelected
  6. // self?.select(index: indexSelected)
  7. }
  8. self.present(controller, animated: false, completion: nil)

Multiple

// TODO

Images

Single choice

Single

Multiple choice

Multiple

License

This program is free software; you can redistribute it and/or modify it under the terms of the MIT License.