Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void) MailExecute {
- if ([MFMailComposeViewController canSendMail])
- {
- MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
- mailViewController.mailComposeDelegate = self;
- [mailViewController setSubject:NSLocalizedString(@"Check this new look", @"")];
- [mailViewController setMessageBody: @"my new look" isHTML:YES];
- [self presentModalViewController:mailViewController animated:YES];
- [mailViewController release];
- }
- else
- {
- UIAlertView *alertInternal = [[UIAlertView alloc]
- initWithTitle: NSLocalizedString(@"Notification", @"")
- message: NSLocalizedString(@"You have not configured your e-mail client.", @"")
- delegate: nil
- cancelButtonTitle:NSLocalizedString(@"OK", @"")
- otherButtonTitles:nil];
- [alertInternal show];
- [alertInternal release];
- }
- }
- [self presentViewController:mailView animated:YES completion:nil];
- NSString *path = [self getDatabaseFilePath];
- NSData *myData = [NSData dataWithContentsOfFile:path];
- [picker addAttachmentData:myData mimeType:@"application/x-sqlite3" fileName:[path lastPathComponent]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement