Edit - I know some of us are emailing screenshots via their app. Below is the portion of Apple’s mailcomposer that attaches the file in the mainBundle. To those that have this working, mind sharing your solution? I’m sure it would help many. Thanks!
Note - I have grabScreen, saveImage working fine.
Here’s my code for the mail composer:
// Attach an image to the email NSString *path = [[NSBundle mainBundle] pathForResource:@"saved" ofType:@"png"]; NSData *myData = [NSData dataWithContentsOfFile:path]; [picker addAttachmentData:myData mimeType:@"image/png" fileName:@"saved"];