0
警告是:获得一个警告在iOS8上
"Assining to id<MFmailComposeViewControllerDelegate> from incompatible type BAOfficeDetailViewController"
我的代码是
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@""];
您需要使“自我”类采用邮件撰写委托。 – 2014-11-01 12:44:12
@Sunny没有必要将其添加到.h文件中。其他班级不需要知道班级处理邮件编辑器。最好通过.m文件中的类扩展添加协议。 – rmaddy 2014-11-01 20:29:28