开发者

Obj-C, How can I use MFMailComposeViewControllerDelegate as a parameter to a method?

开发者 https://www.devze.com 2023-02-14 06:01 出处:网络
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.

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消