Edit image in UIImageView and use new image <p>I have an app where you enter information into some forms and press a button to email the image with the information from the forms put on the image. I turn the strings from the forms into UILabels and place those on the UIImageView and then I try to get that image and email it as an attachments. When I do press the button, I just get the original image in the email. Here's my code:</p> <pre><code>-(IBAction)emailToCustomer:(id)sender { UIImage *rebateImage = [UIImage imageNamed:@"rebate.png"]; UIImageView *rebateImView = [[UIImageView alloc]initWithImage:rebateImage]; UILabel *rebateLabel = [[UILabel alloc]init]; rebateLabel.text = productField.text; [rebateImView addSubview:rebateLabel]; NSData *rebateData = UIImagePNGRepresentation(rebateImView.image); MFMailCOmposeViewController *mailVC = [[MFMailComposeViewController alloc]init]; [mailVC setMailComposeDelegate:self]; if([MFMailComposeViewController canSendMail]) { [mailVC setSubject:@"Rebate"]; [mailVC addAttachmentData:rebateData mimeType:@"image/png" filename:@"RebateCoupon.png"]; [self presentViewController:mailVC animated:YES completion:nil]; } else { NSLog(@"Can't Send Mail"); } } </code></pre> <p>All I get in the email is the original rebate image, even though I enter information in the fields. I want the text from productField to be put on the image from the UIImageView and attach the new image to the email.</p>