# \[IOS\] ScreenShot Save To Camera Rolll?

**URL:** <https://forums.unrealengine.com/t/ios-screenshot-save-to-camera-rolll/103944>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [December 16, 2017, 6:26am UTC](https://forums.unrealengine.com/t/ios-screenshot-save-to-camera-rolll/103944 "2017-12-16T06:26:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WindyStrife](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WindyStrife](https://forums.unrealengine.com/u/WindyStrife)\
**Post date:** [December 16, 2017, 6:26am UTC](https://forums.unrealengine.com/t/ios-screenshot-save-to-camera-rolll/103944/1 "2017-12-16T06:26:20Z")

</div>

When i use console command “shot”, it will have a image on project, i can see it or load it again to texture2d, it doesn’t appear in my Iphone Gallery,  
i just try some Objective C code to save it to camera roll like this:

```auto

FString AScreenshooter::RequestNewScreenshot()
{
FString filename = "Image.png";
FScreenshotRequest::RequestScreenshot(filename, false, false);
return FScreenshotRequest::GetFilename();
}
void AScreenshooter::SaveNativeScreenshot()
{
   /*#if PLATFORM_IOS
[Screenshooter saveScreenshotNative];
    #endif*/
    #if PLATFORM_IOS
   //NSString* file = @"/private/var/mobile/Media/DCIM/Image.png";
NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"/ScreenShotPrj/Saved/Screenshots/IOS/Image.png"];
//NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [documentsDirectory stringByAppendingPathComponent:file];
UIImage *image = [UIImage imageWithContentsOfFile:filePath];
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
    #endif
}

```

but when i package it will be crashed when i open app 😕 😕  
Anyone helps me please???
