Saving image to Documents directory and retrieving for email attachment
I having trouble figuring out NSBundle & DocumentDirectory data, I have a Camera Picture " imageView " that I'm saving to the NSDocumentDirectoy and then want to retrieve it for attaching to an email, Here the saving code: - (IBAction)saveImage { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImage.png"]; UIImage *image = imageView.image; // imageView is my image from camera NSData *imageData =