Latest 0.0.3
Homepage https://github.com/mysterioustrousers/MTDateComponentsPicker
License BSD
Platforms ios 5.0, requires ARC
Dependencies MTDates
Authors

A picker for choosing date components. Allows some components to be undefined.

Installation

In your Podfile, add this line:

pod "MTDateComponentsPicker"

pod? => https://github.com/CocoaPods/CocoaPods/

Example Usage

#import <MTDateComponentsPicker.h>

@interface YourClass <MTDateComponentsPickerDelegate>
// In this case, I just dragged a UIPicker on my view controller xib and gave it a class of MTDateComponentsPicker and connected this outlet.
@property (weak, nonatomic) IBOutlet MTDateComponentsPicker *dateComponentsPicker;
@end

@implementation

- (void)viewDidLoad
{
    _dateComponentsPicker.dateComponents = [[NSDateComponents alloc] init];
    _dateComponentsPicker.onChange = ^(NSDateComponents *pickedDateComponents){
        NSLog(@"%@", pickedDateComponents);
    };
}

@end

Latest podspec

{
    "name": "MTDateComponentsPicker",
    "version": "0.0.3",
    "summary": "A picker for choosing date components. Allows some components to be undefined.",
    "homepage": "https://github.com/mysterioustrousers/MTDateComponentsPicker",
    "license": "BSD",
    "authors": {
        "Adam Kirk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mysterioustrousers/MTDateComponentsPicker.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "DateComponentsPicker/MTDateComponentsPicker.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "MTDates": []
    }
}

Pin It on Pinterest

Share This