问题
We have an iOS6 (iPhone) app we are building in XCode that lists installed apps on the user's device (who have registered URLs) in a list View. Is it possible to make one of the apps in the list open in Guided Access mode (if Guided Access is turned on beforehand)? Basically, we want to bypass the triple click on the home button and make any app in the list open directly to the Guided Access Start Screen.
回答1:
According to Apple,
Guided Access helps students with disabilities such as autism remain on task and focused on content. It allows a parent, teacher, or administrator to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen.
It's pretty clear that Apple will forbid launch of other applications.
回答2:
There is no current way to initiate guided access mode via API; the ONLY method is for the user to do it (settings, tripple click home, etc.). Some testing apps say they test (via API call) to insure the app is in guided access mode or they won't run their test. Looking for that API call now.
来源:https://stackoverflow.com/questions/13938571/trying-to-initate-guided-access-from-within-an-ios6-app