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 trialIssa Issou
320 PointsPreventing 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
42,016 Pointsat 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
Felix Guerrero
3,813 PointsThis is only restricted by the OS so I hope Apple (someday) allows us to disable that feature in iOS.
Issa Issou
320 Pointslets cross fingers then
Felix Guerrero
3,813 PointsJust looking around I found this http://www.raywenderlich.com/48001/easily-overlooked-new-features-ios-7#screenshot.
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsThis would be your best option...
Issa Issou
320 PointsIssa Issou
320 Pointsthanks for the answer