nsdocument

Saving image to Documents directory and retrieving for email attachment

天大地大妈咪最大 提交于 2019-11-26 21:34:46
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 =

How to save created PDF in document folder and merge in iOS

不羁的心 提交于 2019-11-26 16:48:26
问题 Updated I am able to create single PDF page of photo captured with comment in iPHone. On button click I am generating one single PDF page every time and I want those PDF page in single PDF bunch. I am not able to merge the single PDF files in to bunch. http://mobile.tutsplus.com/tutorials/iphone/generating-pdf-documents/?search_index=3 I have followed the above URL code. Could you suggest some logic here. Thanks in advance. * Edit in code * can you check below code. - (IBAction