Quiero poder usar iPhones Mail.app dentro de mi aplicación para que mis usuarios puedan enviar un correo electrónico compartido sin salir de la aplicación. Sé que 3.0 hizo esto posible.iPhone - MessageUI - marco no encontrado Mensaje
He agregado el framework correctamente al presionar ctrl en la carpeta de mi framework -> add existing framework.
añadió esta en el fichero de cabecera de la viewcontroller Quiero que el Mail.app que aparezca en.
#import <MessageUI/MessageUI.h>
que aparezca un UIAlert y en el cierre que llamo la función a continuación, No hay errores que muestran hasta en mi código ¿Tengo que hacer algo extra dentro del Interface Builder? Error Msg es continuación
-(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];
}
Mi MENSAJE DE ERROR:
ld: framework not found Message
collect2: ld returned 1 exit status
he seguido este tutorial: http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/
Ver http://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4 – Stan