Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4037198
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:19:04+00:00 2026-05-20T12:19:04+00:00

My in app email is now working, but i’m getting a compile warning. I

  • 0

My in app email is now working, but i’m getting a compile warning. I would like to fix this, any help or suggestions would be appreciated.

I’m getting this warning.

/Users/vikings1201/Documents/iPhone Applications/LittleTipper_4.0/tipApp/Classes/tipAppViewController.m:1083:0 /Users/vikings1201/Documents/iPhone Applications/LittleTipper_4.0/tipApp/Classes/tipAppViewController.m:1083: warning: class ‘tipAppViewController’ does not implement the ‘MFMailComposeViewControllerDelegate’ protocol

-(IBAction)sendMail {

    MFMailComposeViewController *mailComposer = [[[MFMailComposeViewController alloc] init] autorelease] ;
    mailComposer.mailComposeDelegate = self;

    if ([MFMailComposeViewController canSendMail]) {
        [mailComposer setToRecipients:nil];
        [mailComposer setSubject:nil];
        [mailComposer setMessageBody:@"Default text" isHTML:NO];

        [self presentModalViewController:mailComposer animated:YES];
    }
}

- (void)mailComposeController:(MFMailComposeViewController*)controller  
          didFinishWithResult:(MFMailComposeResult)result 
                        error:(NSError*)error {

    [controller dismissModalViewControllerAnimated:YES];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:19:04+00:00Added an answer on May 20, 2026 at 12:19 pm

    It’s trying to protect you from setting the .delegate property to an object that might not implement the delegate methods.

    In your .h file, you need to make it declare that it implements the delegate protocol.

    @interface myVC : UIViewController <MFMailComposeViewControllerDelegate>
    {
    ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a very simple email-like messaging functionality as part of an App
UPDATE: this has just started happening again, would appreciate any help. I am using
I'd like to include a zip file as an attachment to in app email
My app is sending users email with the following: https://blah.chacha.com/feedback/##comment-reply-169 But for some reason,
i have an app that sends out email but i have to only send
I'm working on a web app that is somewhere between an email service and
I've been working this issue for a while now and I am open to
I am working on eBook app.In that i want to put email button to
I'm working on an android app which would connect to a web server which
I can't send email to my app users, even though I have the permissions.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.