diff --git a/Example/JMActionSheetDescription.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate b/Example/JMActionSheetDescription.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate index 9ea789d..2789774 100644 Binary files a/Example/JMActionSheetDescription.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate and b/Example/JMActionSheetDescription.xcworkspace/xcuserdata/jeromemorissard.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/README.md b/README.md index c4526db..13ee991 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,20 @@ ActionSheet and UIActivityViewController replacement, using a descriptor compone [![CocoaPods](http://img.shields.io/cocoapods/v/JMActionSheetDescription.svg)](https://github.com/leverdeterre/PermissiveResearch) [![Platform](https://img.shields.io/cocoapods/p/JMActionSheetDescription.svg?style=flat)](http://cocoapods.org/pods/JMActionSheetDescription) +## Capability +* present labels +* present actions (UIButton) +* present image(s) +* present picker +* present datepicker +* present icons collections + ## Changelog +0.4.9 : + +* add DatePicker support + 0.4.7 / 0.4.8 : * Improve protocol usage @@ -104,6 +116,20 @@ desc.items = @[itemShare,pickerItem]; ### Shortcuts for creation +#### To present a picker (JMDatePickerActionSheet) + +```objective-c +NSDate *minDate = [NSDate date]; +NSDate *maxDate = [[NSDate date] dateByAddingTimeInterval:999999]; +NSDate *selectedDate = [[NSDate date] dateByAddingTimeInterval:64000]; + +[JMDatePickerActionSheet showDatePickerActionSheetMinDate:minDate maxDate:maxDate selectedDate:selectedDate didSelectBlock:^(id selectedItem) { + NSLog(@"Plop"); +} +title:@"MyTitle" +inViewController:self]; +``` + #### To present a picker (JMPickerActionSheet) ```objective-c