# Save Screenshot Image to PhotosAlbum on iPad

**URL:** <https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, Scripting, question\
**Created:** [September 5, 2017, 6:41am UTC](https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763 "2017-09-05T06:41:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethelfeda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ethelfeda](https://forums.unrealengine.com/u/Ethelfeda)\
**Post date:** [September 5, 2017, 6:41am UTC](https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763/1 "2017-09-05T06:41:18Z")

</div>

hi!  
I created a button to take screenshot and need to save it to photoAlbum on ipad.

first, in the cpp file, i used

```
 `FScreenshotRequest::RequestScreenshot(filename, false, false)`.

```

I also get the absolute path in ios device by using `IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*FPaths::ScreenShotDir())`  
the return value seems like `/var/mobile/Containers/Data/Application/xxxx-xxxx-xxxx/Library/Caches/{ProjectName}/Saved/Screenshots/IOS/`

and then, i used original object-c code to get the UIImagefrom the location i got in the prev step.

```
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachePath = [paths objectAtIndex : 0];
NSString *filePath = [cachePath stringByAppendingPathComponent : @"{ProjectName}/Saved/Screenshots/IOS/xxxx.png"];
UIImage *image = [UIImage imageWithContentsOfFile : filePath];
UIImageWriteToSavedPhotosAlbum(image , nil, nil, nil);

```

I tested many times, but every time i run into the func **UIImageWriteToSavedPhotosAlbum** , the app crashes.

Did any one can help me with that?

---

<div class="post-metadata">

**Author:** ![Naitguolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Naitguolf](https://forums.unrealengine.com/u/Naitguolf)\
**Post date:** [September 15, 2017, 9:26am UTC](https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763/2 "2017-09-15T09:26:02Z")

</div>

Anyone knows any solution, but only using blueprints without needed to use C/C++, on iPad to create a screenshot?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b393dfb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b393dfb](https://forums.unrealengine.com/u/anonymous_user_3b393dfb)\
**Post date:** [March 11, 2019, 9:31am UTC](https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763/3 "2019-03-11T09:31:34Z")

</div>

Hi I also encountered the same problem, solved it?

---

<div class="post-metadata">

**Author:** ![emma90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emma90](https://forums.unrealengine.com/u/emma90)\
**Post date:** [December 16, 2024, 10:53pm UTC](https://forums.unrealengine.com/t/save-screenshot-image-to-photosalbum-on-ipad/403763/4 "2024-12-16T22:53:28Z")

</div>

Hi, Did anyone solve it? I’m trying to save the screenshoot in the gallery too but It is not working, Help!!!
