Latest1.0.2
Homepagehttps://github.com/liufengting/FTPickerView
LicenseMIT
Platformsios , requires ARC
Authors

Twitter
GitHub license
Version
CI Status
GitHub stars

A simple UIPickerView/UIDatePicker wrapper.

Features

  • singleton
  • block callbacks

ScreenShots

FTPickerViewFTPickerView

Useage

  • Simple Picker
    //simple picker
    [FTPickerView showWithTitle:@"Choose a step"
                      nameArray:self.optionArrayOne
                      doneBlock:^(NSInteger selectedIndex) {
                          [sender setTitle:_optionArrayOne[selectedIndex] forState:UIControlStateNormal];
                      } cancelBlock:^{

                      }];
  • Date Picker
    //date picker
    [FTDatePickerView showWithTitle:@"Choose a date"
                         selectDate:nil
                     datePickerMode:UIDatePickerModeDateAndTime
                          doneBlock:^(NSDate *selectedDate) {
                              NSDateFormatter *dateFormate = [[NSDateFormatter alloc]init];
                              [dateFormate setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
                              [sender setTitle:[dateFormate stringFromDate:selectedDate] forState:UIControlStateNormal];
                          } cancelBlock:^{

                          }];

Installation

Manual

  • Drag ‘FTPickerView’ file to you project,
  • Import ‘FTPickerView.h’,
  • Enjoy! 🍺

Cocoapods

  • add the following line to you podFile,then pod update
   pod 'FTPickerView', '~> 0.1.1'

License

FTPickerView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "FTPickerView",
    "version": "1.0.2",
    "summary": "A simple UIPickerView/UIDatePicker wapper.",
    "description": "A UIPickerView/UIDatePicker wrapper which is maybe the easiest one to use. Using singleton and block callbacks.",
    "authors": {
        "liufengting": "[email protected]"
    },
    "homepage": "https://github.com/liufengting/FTPickerView",
    "screenshots": [
        "https://raw.githubusercontent.com/liufengting/FTPickerView/master/ImageAssets/SimplePicker.png",
        "https://raw.githubusercontent.com/liufengting/FTPickerView/master/ImageAssets/DatePicker.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/liufengting/FTPickerView.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "FTPickerView",
        "FTPickerView/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This