Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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