123456789101112131415161718192021222324252627282930 |
- //
- // MFMessageComposeViewController+BlocksKit.h
- // BlocksKit
- //
- #import <MessageUI/MessageUI.h>
- /** MFMessageComposeViewController with block callback in addition to delegation.
-
- If you provide a completion handler to an instance of
- MFMessageComposeViewController but do not implement a delegate callback for
- messageComposeViewController:didFinishWithResult:error:, the message compose
- view controller will automatically be dismissed if it was launched modally.
- Created by [Igor Evsukov](https://github.com/evsukov89) and contributed to
- BlocksKit.
- @warning MFMessageComposeViewController is only available on a platform with MessageUI.
- */
- @interface MFMessageComposeViewController (BlocksKit)
- /** The block fired on the dismissal of the SMS composition interface.
-
- This block callback is an analog for the
- messageComposeViewController:didFinishWithResult: method
- of MFMessageComposeViewControllerDelegate.
- */
- @property (nonatomic, copy, setter = bk_setCompletionBlock:) void (^bk_completionBlock)(MFMessageComposeViewController *controller, MessageComposeResult result);
- @end
|