UIPopoverController+BlocksKit.h 898 B

12345678910111213141516171819202122
  1. //
  2. // UIPopoverController+BlocksKit.h
  3. // BlocksKit
  4. //
  5. #import <UIKit/UIKit.h>
  6. /** Block functionality for UIPopoverController.
  7. Created by [Alexsander Akers](https://github.com/a2) and contributed to BlocksKit.
  8. @warning UIPopovercontroller is only available on a platform with UIKit.
  9. */
  10. @interface UIPopoverController (BlocksKit)
  11. /** The block to be called when the popover controller will dismiss the popover. Return NO to prevent the dismissal of the view. */
  12. @property (nonatomic, copy, setter = bk_setShouldDismissBlock:) BOOL (^bk_shouldDismissBlock)(UIPopoverController *popoverController);
  13. /** The block to be called when the user has taken action to dismiss the popover. This is not called when -dismissPopoverAnimated: is called directly. */
  14. @property (nonatomic, copy, setter = bk_setDidDismissBlock:) void (^bk_didDismissBlock)(UIPopoverController *popoverController);
  15. @end