I am guessing this is a basic error… but can’t seem to figure out the following build error (warning)…
Passing 'MessageDetailController *const __strong' to parameter of incompatible type 'id<MFMessageComposeViewControllerDelegate>'
On the following line…
controller.messageComposeDelegate = self;
I have the following declared in the header file…
@interface MessageDetailController : UIViewController <MFMailComposeViewControllerDelegate>
Try This
instead of
controller.messageComposeDelegate = self;because you have imported the
MFMailComposeViewControllerDelegateprotocol and i think you are trying to send the mail.if i am wrong i.e you are trying to send the Message then you should Adopt the
MFMessageComposeViewControllerDelegateProtocol,In this case no need to change the single line of code.For more detailed Knowledge of MessageUI Framework take a look of this Link