[Solved] add screenshot to email without being saved to library
UIActionSheet *options = [[UIActionSheet alloc] initWithTitle:@”Options” delegate:self cancelButtonTitle:@”Cancel” destructiveButtonTitle:nil otherButtonTitles:@”Email”, nil]; [options showInView:self.view]; #pragma mark ActionSheet Delegate -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { switch (buttonIndex) { case 0: { } default: break; } } #pragma mark Email //Allocating Memory for MailComposer MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init]; mailController.mailComposeDelegate = self; UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); … Read more