/BlocksKit/MFMessageComposeViewController+BlocksKit.h

http://github.com/zwaldowski/BlocksKit · C++ Header · 30 lines · 4 code · 4 blank · 22 comment · 0 complexity · 28356bf864c17bbea91f996a46ba12fa MD5 · raw file

  1. //
  2. // MFMessageComposeViewController+BlocksKit.h
  3. // %PROJECT
  4. //
  5. #import "BKGlobals.h"
  6. /** MFMessageComposeViewController with block callback in addition to delegation.
  7. If you provide a completion handler to an instance of
  8. MFMessageComposeViewController but do not implement a delegate
  9. callback for messageComposeViewController:didFinishWithResult:error:,
  10. the message compose view controller will automatically be
  11. dismissed if it was launched modally.
  12. Created by Igor Evsukov and contributed to BlocksKit.
  13. @warning UIWebView is only available on iOS or in a Mac app using Chameleon.
  14. */
  15. @interface MFMessageComposeViewController (BlocksKit)
  16. /** The block fired on the dismissal of the SMS composition interface.
  17. This block callback is an analog for the
  18. messageComposeViewController:didFinishWithResult: method
  19. of MFMessageComposeViewControllerDelegate.
  20. */
  21. @property (nonatomic, copy) void(^completionBlock)(MFMessageComposeViewController *, MessageComposeResult);
  22. @end