Obj-C, How can I use MFMailComposeViewControllerDelegate as a parameter to a method?
I'm trying to re-use in-app email functionality in my app, so i can call it from an info button on all of my views.
My problem is use 开发者_运维知识库MFMailComposeViewControllerDelegate
as a parameter to this function.
I think if I can get this to work, this will solve my other issues.
You're wanting to pass an MFMailComposeViewControllerDelegate
as a parameter to a method? Just declare the method something like this:
- (void)foo:(id<MFMailComposeViewControllerDelegate>)mf_delegate;
精彩评论