ActionSheetCustomPickerDelegate.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ActionSheetPickerDelegate.h
  3. // ActionSheetPicker
  4. //
  5. // Created by on 13/03/2012.
  6. // Copyright (c) 2012 Club 15CC. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "AbstractActionSheetPicker.h"
  10. @protocol ActionSheetCustomPickerDelegate <UIPickerViewDelegate, UIPickerViewDataSource>
  11. @optional
  12. /**
  13. Allow the delegate to override default settings for the picker
  14. Allows for instance, ability to set separate delegates and data sources as well as GUI settings on the UIPickerView
  15. If not defined and explicily overridden then this class will be the delegate and dataSource.
  16. */
  17. - (void)configurePickerView:(UIPickerView *)pickerView DEPRECATED_MSG_ATTRIBUTE("use -actionSheetPicker:configurePickerView: instead.");
  18. - (void)actionSheetPicker:(AbstractActionSheetPicker *)actionSheetPicker configurePickerView:(UIPickerView *)pickerView;
  19. /**
  20. Success callback
  21. \param actionSheetPicker .pickerView property accesses the picker. Requires a cast to UIView subclass for the picker
  22. \param origin The entity which launched the ActionSheetPicker
  23. */
  24. - (void)actionSheetPickerDidSucceed:(AbstractActionSheetPicker *)actionSheetPicker origin:(id)origin;
  25. /** Cancel callback. See actionSheetPickerDidSuccess:origin: */
  26. - (void)actionSheetPickerDidCancel:(AbstractActionSheetPicker *)actionSheetPicker origin:(id)origin;
  27. @required
  28. @end