Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone - MessageUI - framework not found Message
    primarykey
    data
    text
    <p>I want to be able to use the iPhones Mail.app inside my application so my users can send a share email without leaving the application. I know 3.0 made this possible. </p> <p>I have added the framework properly by ctrl clicking on my frameworks folder -> add existing framework.</p> <p>Added this to the header file of the viewcontroller I want the Mail.app to appear in.</p> <pre><code>#import &lt;MessageUI/MessageUI.h&gt; </code></pre> <p>I pop up a UIAlert and on closing I call the function below, There are no errors showing up in my code. Do I have to do something extra inside the Interface Builder? Error Msg is Below</p> <pre><code>-(void)showEmailModalView { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; // &lt;- very important step if you want feedbacks on what the user did with your email sheet NSString * emailSubject = [[NSString alloc] initWithFormat:@"iPhone Subject Test"]; [picker setSubject:emailSubject]; NSString * content = [[NSString alloc] initWithFormat:@"iPhone Email Content"]; // Fill out the email body text NSString *pageLink = @"http://mugunthkumar.com/mygreatapp"; // replace it with yours NSString *iTunesLink = @"http://link-to-mygreatapp"; // replate it with yours NSString *emailBody = [NSString stringWithFormat:@"%@\n\n&lt;h3&gt;Sent from &lt;a href = '%@'&gt;MyGreatApp&lt;/a&gt; on iPhone. &lt;a href = '%@'&gt;Download&lt;/a&gt; yours from AppStore now!&lt;/h3&gt;", content, pageLink, iTunesLink]; [picker setMessageBody:emailBody isHTML:YES]; // depends. Mostly YES, unless you want to send it as plain text (boring) picker.navigationBar.barStyle = UIBarStyleBlack; // choose your style, unfortunately, Translucent colors behave quirky. [self presentModalViewController:picker animated:YES]; [picker release]; [content release]; [emailSubject release]; } - (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { [self dismissModalViewControllerAnimated:YES]; } </code></pre> <p>My ERROR MESSAGE:</p> <pre><code> ld: framework not found Message collect2: ld returned 1 exit status </code></pre> <p>I followed this tutorial: <a href="http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/" rel="nofollow noreferrer">http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload