MFMailComposeViewController overrides default delegate #24
Comments
Yes, that's the idea. BlocksKit overrides the default delegate with a block trampoline, but also holds on to the delegate you set and calls both your callback and the block. I just tested this again and it works for me:
Please be sure that you are calling |
This is my sample code, in certain cases I don't need to set the blocks delegate. If this works for you I need to investigate further why my delegate is not called when adding the Blockskit to my project -(void)lauchEmailController //this delegate callback never gets called when having BlockKit added as a reference into the project
|
Your delegate callback is being called.
Issue closed. |
For future reference, the comment about From the documentation |
L Sent from my iPhone On Oct 10, 2011, at 1:39 PM, Bryan Henry
|
That would've made things a lot easier a long time ago, thanks! I On Oct 10, 2011, at 1:39 PM, Bryan Henry
|
Can't use default MFMailComposeViewController anymore, when dismissing viewController delegate method is not called.
I think the problem is that the default setMailComposeDelegate is overridden even when using the default MFMailComposeViewController.
MFMailComposeViewController+BlocksKit.m
The text was updated successfully, but these errors were encountered: