Skip to content

Conversation

@guihendias
Copy link

Hey there,

I've just added an prop option for saving the captured pic to documents folder, as I needed to keep the images shown in my app for a while.

I'm not and Objective-c guy, so, just added the code that I found on stack overflow, haha.

If you have time, please, help refactoring my changes, if you found this useful.

Thanks for your great project! See you!

@PaitoAnderson
Copy link

I am looking for something like this too, for now I am just calling:
CameraRoll.saveToCameraRoll(data.croppedImage);

NSError *error;
NSFileManager *fileMgr = [NSFileManager defaultManager];
NSString *documents = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *dataPath = [documents stringByAppendingPathComponent:@"PJBANK_DOCUMENTS"];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably either let the user specify a folder name or use the CFBundleDisplayName without spaces maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants