开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜