Disable Home Button

泪湿孤枕 提交于 2019-12-23 07:36:23

问题


I know this has been asked previously however I would like to disable the home button for an in-house app which will be distributed internally across iPads.

I have searched for a solution both on here and Google and would like to stop users from putting the app into the background. I have seen one solution which doesn't seem to work under iOS 4.0 which opens the app up again when the home button is pressed.

Could I make use of any private APIs to do this seeing as this is an internal app and won't be reviewed by Apple for the App Store?

Thanks


回答1:


I don't know why this is down voted so much it is a perfectly legit use case for an internal enterprise application. Kiosks, POS etc.

Anyway anyone wanting to know how to do this should see my answer here Lock-down iPhone/iPod/iPad so it can only run one app




回答2:


Whatever your reasons are you are not able to do this.

Apple provides no functionality to perform this action through their API. You might want to re-think your strategy. Look maybe instead for a physical barrier.

Additionally you might want to look into JailBreaking and iPhone since you say it is only for internal development and won't go to the appstore. A jail broken phone might allow you access to change the home button behavior, though I cannot confirm this since I have never had need to code on a jail broken device.




回答3:


If it's your iPad, glue or bolt a cover over the home button. Connect the iPad to Xcode or iTunes to halt and/or reload your app.

But note that knowledgable users will still be able to reboot the device by holding down the lock button.




回答4:


Jailbreak and add incarcer app can disable the home button (admin has a code to allow activation). Then you're locked in your app. If you're up for jailbreaking, seems like a great solution.

There's a new hardware solution, adhesive-backed aluminum home button covers. They allow home button activation through a pinhole, using a paperclip (similar to many popular metal encosures). http://bubcap.com/bubcap-pro.html



来源:https://stackoverflow.com/questions/6766629/disable-home-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!