iPhone - MessageUI - framework nicht gefunden (Nachricht)

Möchte ich, um der Lage sein, die iPhones Mail.app in meine Anwendung also mein Benutzer senden können Sie eine Freigabe-E-Mail, ohne die Applikation verlassen. Ich weiß, 3.0 machte es möglich.

Habe ich die Rahmen richtig durch Strg-Klick auf meine frameworks Ordner -> hinzufügen von vorhandenen Rahmen.

Hinzugefügt, das die header-Datei der viewcontroller ich möchte die E-Mail.app erscheinen.

#import <MessageUI/MessageUI.h>

Ich ein pop-up-UIAlert und Schließung rufe ich die Funktion unten gibt Es keine Fehler zeigen, bis in meinem code. Muss ich etwas extra zu tun innerhalb der Interface Builder? Error Msg ist Unten

-(void)showEmailModalView {

    MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
    picker.mailComposeDelegate = self; //<- 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<h3>Sent from <a href = '%@'>MyGreatApp</a> on iPhone. <a href = '%@'>Download</a> yours from AppStore now!</h3>", 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];
}

Meine FEHLERMELDUNG:

 ld: framework not found Message
 collect2: ld returned 1 exit status

Folgte ich diesem tutorial:
http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/

InformationsquelleAutor bbullis21 | 2009-09-04
Schreibe einen Kommentar