First time member and post to the site so sorry if i did something incorrect. Anyway I am creating an application that allows the user to select a picture from their photo library and attaches it to a UIViewImage on the screen. Once the user selects the image of their choice they then select a button that takes them to an email screen with the chosen image attached to the email. My problem lies in getting the image chose from UIIMageView attached to the email? I looked at apple's "MailComposer" app and was able to append text, but appending the image to the email is something i cant seem to find any help on.
This is apple's default code. But in terms of putting my picture into the email, the problems lies in the fact that theres no static path. The path to the photo will change depending on what the user selects?
NSString *path = [[NSBundle mainBundle] pathForResource:@"rainy" ofType:@"png"];
NSData *myData = [NSData dataWithContentsOfFile

ath];
[picker addAttachmentData:myData mimeType:@"image/png" fileName:@"rainy"];