blackmirror-media / BMPickerModal

BMPickerModal is a control showing a UIPicker or a UIDatePicker in a modal view.
MIT License
5 stars 3 forks source link

Added the ability to get notified when the Picker gets dismissed via a protocol #5

Open eddieespinal opened 8 years ago

eddieespinal commented 8 years ago

I think this featured was needed as I had to performed some cleanup on my viewcontroller if the user dismissed the Picker. If the Save button was pressed it was easy to clean up but not when a user press the Cancel button.

Hopefully someone else will find this useful.

eriadam commented 8 years ago

Thanks Eddie. It's a great idea. However, I am trying to avoid the protocol pattern in favour of the closures. The component is already using a closure for handling the selection.