/BlocksKit/MFMailComposeViewController+BlocksKit.h
C++ Header | 30 lines | 4 code | 4 blank | 22 comment | 0 complexity | e2dbdb5bf81857fa8f3aafb2d64670b5 MD5 | raw file
1// 2// MFMailComposeViewController+BlocksKit.h 3// %PROJECT 4// 5 6#import "BKGlobals.h" 7 8/** MFMailComposeViewController with block callbacks. 9 10 If you provide a completion handler to an instance of 11 MFMailComposeViewController but do not implement a delegate 12 callback for mailComposeController:didFinishWithResult:error:, 13 the mail 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 MFMailComposeViewController (BlocksKit) 21 22/** The block fired on the dismissal of the mail composition interface. 23 24 This block callback is an analog for the 25 mailComposeController:didFinishWithResult:error: method 26 of MFMailComposeViewControllerDelegate. 27*/ 28@property (nonatomic, copy) void(^completionBlock)(MFMailComposeViewController *, MFMailComposeResult, NSError *); 29 30@end