UIImagePickerController+BlocksKit.h 739 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // UIImagePickerController+BlocksKit.h
  3. // BlocksKit
  4. //
  5. // Contributed by Yas Kuraishi.
  6. //
  7. #import <UIKit/UIKit.h>
  8. /** UIImagePickerController with block callback.
  9. Created by [Yas Kuraishi](https://github.com/YasKuraishi) and contributed to
  10. BlocksKit.
  11. @warning UIImagePickerController is only available on a platform with
  12. UIKit.
  13. */
  14. @interface UIImagePickerController (BlocksKit)
  15. /**
  16. * The block that fires after the receiver finished picking up an image
  17. */
  18. @property (nonatomic, copy) void(^bk_didFinishPickingMediaBlock)(UIImagePickerController *, NSDictionary *);
  19. /**
  20. * The block that fires after the user cancels out of picker
  21. */
  22. @property (nonatomic, copy) void(^bk_didCancelBlock)(UIImagePickerController *);
  23. @end