Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Preventing users from taking screenshots in an iOS App

how Can i disable the screenshot button in my app? , i am doing a iOS quiz app for my school and i want to prevent people from screenshoting the answers

3 Answers

Stone Preston
Stone Preston
42,016 Points

at this point in time I dont think its possible to prevent the user from taking a screenshot.

You can make it harder for a user to screen shot an answer by only showing the answer when the user touches the screen (like snapchat does). When the user tries to take a screenshot they have to take their finger off the screen which makes the image go away. Its still easy to capture a screenshot though, but its better to make it harder than to not do anything at all I guess

This would be your best option...

thanks for the answer

This is only restricted by the OS so I hope Apple (someday) allows us to disable that feature in iOS.

lets cross fingers then