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