简体   繁体   English

如何以编程方式在iPhone中禁用主页按钮

[英]how to disable home button in iPhone programmatically ios7

I am developing an enterprise app which supports Guided Access ie disable/enable the home button (like Child Lock) once the app is launched. 我正在开发一个企业应用程序,该应用程序支持“引导访问”,即在应用程序启动后禁用/启用主页按钮(例如“儿童锁”)。 I have browsed & spend lot of time on this but no use. 我已经浏览并花了很多时间,但没有用。 :( I din't get any helpful info. :(我没有得到任何有用的信息。

Any suggestion or needful information will be helpful for me. 任何建议或必要的信息将对我有所帮助。

Note: No Jailbreaking 注意:不可越狱

You have to turn on Accessibility feature. 您必须打开辅助功能。 Settings > General > Accessibility > Guided Access Set Guided Access on. 设置>常规>可访问性>引导访问将引导访问设置为开。

Now you can triple click the home button and prevent access to the home button. 现在,您可以三次单击“主页”按钮,并阻止访问“主页”按钮。

There is no way on this planet an app can programmatically disable the home button. 在这个星球上,应用程序无法以编程方式禁用主页按钮。 The iPhone pretty much fails to work without it. 没有它,iPhone几乎无法工作。

Not possible. 不可能。

You cannot stop the home button being pressed as this interferes with the navigation and usability of iOS 7. 您无法停止按下主页按钮,因为这会干扰iOS 7的导航和可用性。

The only way to force the home button not to work is to get a case which covers it and does not allow it to be pressed. 迫使主页按钮不起作用的唯一方法是得到一个覆盖它且不允许其被按下的盒子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM