save screenshot to gallery/ios

hello,

so i have a button to save screenshot for the current scene to the gallery, i need code to implement that in an ios devices

please help me i’ll appreciate it.

Definitely start with any of the thousands of videos on this topic.

6984347--824363--Screen Shot 2021-03-28 at 9.07.10 PM.png

This is extremely well-covered ground, no need for anyone here to retype it all!

for sure i searched on google first, but the none of solutions i’ve found worked

I still didn’t find solution, could you help me please if you know how? :frowning:

as kurt already pointed out a google search does half the work.

I came out on this:

yes i downloaded it but i dont know how to use it for ios

Did you read the FAQ and do 100% of all the items required?

. Manual Setup for iOS
- set the value of ENABLED to false in NGPostProcessBuild.cs
- build your project
- enter a Photo Library Usage Description to Info.plist in Xcode
- also enter a "Photo Library Additions Usage Description" to Info.plist in Xcode, if exists
- set Info.plist's "Prevent limited photos access alert" property's value to 1 in Xcode, if exists
- insert "-weak_framework PhotosUI -weak_framework Photos -framework AssetsLibrary -framework MobileCoreServices -framework ImageIO" to the "Other Linker Flags" of Unity-iPhone Target (if your Deployment Target is at least 8.0, it is sufficient to insert "-weak_framework PhotosUI -framework Photos -framework MobileCoreServices -framework ImageIO")
- lastly, remove Photos.framework and PhotosUI.framework from Link Binary With Libraries of Unity-iPhone Target in Build Phases, if exists```
1 Like