Utilicé MessageUI framework para enviar el correo con el archivo adjunto desde mi aplicación. pero me dio el siguiente error,iphone email adjunto
2009-09-07 19:52:23.483 emailTest[11711:5b17]
Error loading /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/DataClassMigrators/AccountMigrator.migrator/AccountMigrator: dlopen(/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/DataClassMigrators/AccountMigrator.migrator/AccountMigrator, 265): Library not loaded: /System/Library/PrivateFrameworks/MobileWirelessSync.framework/MobileWirelessSync
Referenced from: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/DataClassMigrators/AccountMigrator.migrator/AccountMigrator
Reason: image not found
2009-09-07 19:52:23.489 emailTest[11711:5b17] [+[AccountsManager _migrateAccountsIfNeeded]] Accounts migration failed
[Switching to process 11711 local thread 0xf03]
mi código es,
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc]init];
picker.mailComposeDelegate = self;
[picker setSubject:@"This is iPhone email attachment test"];
UIImage *sampleImg = [UIImage imageNamed:@"iPhone.jpg"];
NSData *imageData = UIImageJPEGRepresentation(sampleImg, 1);
[picker addAttachmentData:imageData mimeType:@"image/png" fileName:@"iPhone.jpg"];
NSString *emailBody = @"I am sending the image attachment with iPhone email service";
[picker setMessageBody:emailBody isHTML:YES];
[self presentModalViewController:picker animated:YES];
[picker release];
por favor ayúdame.
Sea más específico: ¿qué código está ejecutando para crear el archivo adjunto? Para separar el mensaje? ¿Cómo está exactamente "usando el framework MessageUI"? – Tim
por favor, eche un vistazo al código. – SST
hola, obtuviste tu código trabajado. También recibí el mismo mensaje mientras tocaba el botón Enviar por correo electrónico. Pero, no estoy agregando ningún archivo adjunto con el correo. No pude descartar el controlador de correo cuando toqué el botón cancelar. Estoy agregando el controlador de correo a la capa cocos2d. Cualquier ayuda por favor Gracias. –