暂时锁定或禁用iPhone主页按钮

时间:2022-07-16 20:58:58

I know the iphone home button is extremely crucial for the functioning of the iphone.
However I have an idea for which I need the application running and the home button to be disabled. I tried googling, but haven't been able to find a solution.

我知道iphone主页按钮对于iphone的运行至关重要。但是我知道我需要运行应用程序并禁用主页按钮。我试过谷歌搜索,但一直无法找到解决方案。

Temporary or timed locking (Lock for 5/10 mins.) would also do.

临时或定时锁定(锁定5/10分钟。)也可以。

The app. should work on non-jailbroken phones, hence going around apple won't work.

该应用程序。应该在非越狱手机上工作,因此绕过苹果将无法正常工作。

Appreciate any ideas.

欣赏任何想法。

7 个解决方案

#1


22  

Note, from 2014 onwards: just to be clear,

请注意,从2014年开始:要清楚,

this is now built in to iOS...

Click to accessibility, click "guided access".

单击“辅助功能”,单击“引导访问”。

Conrats for "inventing" it, PlanetUnknonw! :-)

致力于“发明”它,PlanetUnknonw! :-)

The answer below is only of historic value...

以下答案仅具有历史价值......


For the record, it's silly that people are saying "Why would you want to do this?"

为了记录,人们说“为什么要这样做?”是愚蠢的。

it's a great idea for example for APPS FOR SMALL CHILDREN (which is indeed a very large market on the iPhone).

例如,APPS FOR SMALL CHILDREN(这确实是iPhone上的一个非常大的市场)是个好主意。

If you've ever marketed an app for small children, you'll know that instantly parents write in abusing you because you "did not stop that stupid home button working, so the child just turns off the game and makes phone calls"

如果你曾经为小孩推销过应用程序,那么你就会知道父母会立刻写下来虐待你,因为你“没有停止那个愚蠢的主页按钮工作,所以孩子只是关闭游戏并拨打电话”

To which you have to reply that it's of course not possible because of the way the iPhone works.

您必须回复它,因为iPhone的工作方式当然不可能。

So yes it's a good question. As far as I know, Planet, it is not possible.

所以是的,这是一个很好的问题。据我所知,Planet,这是不可能的。

Apple should add a "kids mode" where parents can lock the fone on TO one particular app for awhile. (Perhaps you would have to long-press or something the home button to unlock it.)

Apple应该添加一个“儿童模式”,父母可以在一段时间内锁定一个特定的应用程序。 (也许你需要长按或按下主页按钮来解锁它。)

#2


14  

UPDATE

UPDATE

*iOS 6 reportedly has a "Single App Mode" - Check out vpdn's answer below https://*.com/a/10503799/333259

This is against the iOS interface guidelines, and apps have been rejected for "overriding" or restricting behaviour of hardware buttons/switches.

这违反了iOS界面指南,并且应用程序因“覆盖”或限制硬件按钮/开关的行为而被拒绝。

I suggest you have a read of the App Store Review Guideline for iOS apps for a good overview of what you shouldn't be doing.

我建议您阅读适用于iOS应用程序的App Store评论指南,以便对您不应该做的事情有一个很好的概述。

Particularly:

尤其:

10.5

10.5

Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected

更改标准开关功能的应用程序(例如音量调高/调低和振铃/静音开关)将被拒绝

Pretty sure that the Home button is included in that.

很确定Home按钮包含在其中。

I'm not sure what your "idea" is here, but I would suggest you look into other things such as backgrounding. There is a feature that allows you to finish executing tasks in the background, even if the user presses the home button, and optionally display a notification after certain time (before the task "expires"). I imagine that this might offer a more appropriate solution (again dependent on what your idea actually is).

我不确定你的“想法”在这里,但我建议你研究其他的东西,比如背景。有一项功能允许您在后台完成任务,即使用户按下主页按钮,也可以选择在一定时间后(在任务“过期”之前)显示通知。我想这可能会提供一个更合适的解决方案(再次取决于你的想法实际上是什么)。

#3


5  

In iOS6 (to be released), there's a feature called "Guided Access", which will allow device owners to lock users (like toddlers and school kids) into an app.

在iOS6(即将发布)中,有一个名为“引导访问”的功能,它允许设备所有者将用户(如幼儿和学校孩子)锁定到应用程序中。

Update: Before the shitstorm about NDA content starts, here's where I got the info from: http://www.theverge.com/2012/6/11/3078350/apple-ios-6-guided-access-parental-control

更新:在关于NDA内容开始的shitstorm开始之前,我在这里获得了以下信息:http://www.theverge.com/2012/6/11/3078350/apple-ios-6-guided-access-parental-control

#4


2  

You can't unless you want to run it on jail broken devices.

你不能,除非你想在*破坏的设备上运行它。

#5


2  

Apple currently will not allow any software to disable or change ANY button functionality for iPhone, iPad, and iPod touch, so the only software solution is to jailbreak the device, so you're not forced to live by Apple's rules.

Apple目前不允许任何软件禁用或更改iPhone,iPad和iPod touch的任何按钮功能,因此唯一的软件解决方案是越狱设备,因此您不会被Apple的规则强迫生活。

However, PaperclipRobot.com is about to release a home button cover specifically targeted to keeping young kids from pressing the home button. Not the exact solution to your problem as stated, but I figured it added to the discussion.

然而,PaperclipRobot.com即将发布一个主页按钮封面,专门用于防止年幼的孩子按下主页按钮。不是所述问题的确切解决方案,但我认为它增加了讨论。

#6


1  

Unsure if you are looking for a way to do it in code in an app or if you're thinking of locking it in general.

不确定您是否正在寻找在应用程序中的代码中执行此操作的方法,或者您是否考虑将其锁定在一般情况下。

Anyways, if you're looking for a way to do it in general, here's a guide for it

无论如何,如果你正在寻找一种方法来做到这一点,这里有一个指南

http://igrudge.net/how-to-disable-the-home-button-on-ios-devices-iphoneipad/

http://igrudge.net/how-to-disable-the-home-button-on-ios-devices-iphoneipad/

#7


0  

If you are looking to temporarily disable the home button to keep a child in a particular app, the tip for a make magazine article is to use a bulldog clip to cover the home button cheaper, and more reusable than a bubcap, temporary and effective.

如果您希望暂时禁用主页按钮以将孩子留在特定的应用程序中,那么make杂志文章的提示是使用牛头犬剪辑来覆盖更便宜的主页按钮,并且比bubcap更可重复使用,暂时且有效。

Source: http://blog.makezine.com/2011/03/01/ipad-home-button-child-lock/

资料来源:http://blog.makezine.com/2011/03/01/ipad-home-button-child-lock/

#1


22  

Note, from 2014 onwards: just to be clear,

请注意,从2014年开始:要清楚,

this is now built in to iOS...

Click to accessibility, click "guided access".

单击“辅助功能”,单击“引导访问”。

Conrats for "inventing" it, PlanetUnknonw! :-)

致力于“发明”它,PlanetUnknonw! :-)

The answer below is only of historic value...

以下答案仅具有历史价值......


For the record, it's silly that people are saying "Why would you want to do this?"

为了记录,人们说“为什么要这样做?”是愚蠢的。

it's a great idea for example for APPS FOR SMALL CHILDREN (which is indeed a very large market on the iPhone).

例如,APPS FOR SMALL CHILDREN(这确实是iPhone上的一个非常大的市场)是个好主意。

If you've ever marketed an app for small children, you'll know that instantly parents write in abusing you because you "did not stop that stupid home button working, so the child just turns off the game and makes phone calls"

如果你曾经为小孩推销过应用程序,那么你就会知道父母会立刻写下来虐待你,因为你“没有停止那个愚蠢的主页按钮工作,所以孩子只是关闭游戏并拨打电话”

To which you have to reply that it's of course not possible because of the way the iPhone works.

您必须回复它,因为iPhone的工作方式当然不可能。

So yes it's a good question. As far as I know, Planet, it is not possible.

所以是的,这是一个很好的问题。据我所知,Planet,这是不可能的。

Apple should add a "kids mode" where parents can lock the fone on TO one particular app for awhile. (Perhaps you would have to long-press or something the home button to unlock it.)

Apple应该添加一个“儿童模式”,父母可以在一段时间内锁定一个特定的应用程序。 (也许你需要长按或按下主页按钮来解锁它。)

#2


14  

UPDATE

UPDATE

*iOS 6 reportedly has a "Single App Mode" - Check out vpdn's answer below https://*.com/a/10503799/333259

This is against the iOS interface guidelines, and apps have been rejected for "overriding" or restricting behaviour of hardware buttons/switches.

这违反了iOS界面指南,并且应用程序因“覆盖”或限制硬件按钮/开关的行为而被拒绝。

I suggest you have a read of the App Store Review Guideline for iOS apps for a good overview of what you shouldn't be doing.

我建议您阅读适用于iOS应用程序的App Store评论指南,以便对您不应该做的事情有一个很好的概述。

Particularly:

尤其:

10.5

10.5

Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected

更改标准开关功能的应用程序(例如音量调高/调低和振铃/静音开关)将被拒绝

Pretty sure that the Home button is included in that.

很确定Home按钮包含在其中。

I'm not sure what your "idea" is here, but I would suggest you look into other things such as backgrounding. There is a feature that allows you to finish executing tasks in the background, even if the user presses the home button, and optionally display a notification after certain time (before the task "expires"). I imagine that this might offer a more appropriate solution (again dependent on what your idea actually is).

我不确定你的“想法”在这里,但我建议你研究其他的东西,比如背景。有一项功能允许您在后台完成任务,即使用户按下主页按钮,也可以选择在一定时间后(在任务“过期”之前)显示通知。我想这可能会提供一个更合适的解决方案(再次取决于你的想法实际上是什么)。

#3


5  

In iOS6 (to be released), there's a feature called "Guided Access", which will allow device owners to lock users (like toddlers and school kids) into an app.

在iOS6(即将发布)中,有一个名为“引导访问”的功能,它允许设备所有者将用户(如幼儿和学校孩子)锁定到应用程序中。

Update: Before the shitstorm about NDA content starts, here's where I got the info from: http://www.theverge.com/2012/6/11/3078350/apple-ios-6-guided-access-parental-control

更新:在关于NDA内容开始的shitstorm开始之前,我在这里获得了以下信息:http://www.theverge.com/2012/6/11/3078350/apple-ios-6-guided-access-parental-control

#4


2  

You can't unless you want to run it on jail broken devices.

你不能,除非你想在*破坏的设备上运行它。

#5


2  

Apple currently will not allow any software to disable or change ANY button functionality for iPhone, iPad, and iPod touch, so the only software solution is to jailbreak the device, so you're not forced to live by Apple's rules.

Apple目前不允许任何软件禁用或更改iPhone,iPad和iPod touch的任何按钮功能,因此唯一的软件解决方案是越狱设备,因此您不会被Apple的规则强迫生活。

However, PaperclipRobot.com is about to release a home button cover specifically targeted to keeping young kids from pressing the home button. Not the exact solution to your problem as stated, but I figured it added to the discussion.

然而,PaperclipRobot.com即将发布一个主页按钮封面,专门用于防止年幼的孩子按下主页按钮。不是所述问题的确切解决方案,但我认为它增加了讨论。

#6


1  

Unsure if you are looking for a way to do it in code in an app or if you're thinking of locking it in general.

不确定您是否正在寻找在应用程序中的代码中执行此操作的方法,或者您是否考虑将其锁定在一般情况下。

Anyways, if you're looking for a way to do it in general, here's a guide for it

无论如何,如果你正在寻找一种方法来做到这一点,这里有一个指南

http://igrudge.net/how-to-disable-the-home-button-on-ios-devices-iphoneipad/

http://igrudge.net/how-to-disable-the-home-button-on-ios-devices-iphoneipad/

#7


0  

If you are looking to temporarily disable the home button to keep a child in a particular app, the tip for a make magazine article is to use a bulldog clip to cover the home button cheaper, and more reusable than a bubcap, temporary and effective.

如果您希望暂时禁用主页按钮以将孩子留在特定的应用程序中,那么make杂志文章的提示是使用牛头犬剪辑来覆盖更便宜的主页按钮,并且比bubcap更可重复使用,暂时且有效。

Source: http://blog.makezine.com/2011/03/01/ipad-home-button-child-lock/

资料来源:http://blog.makezine.com/2011/03/01/ipad-home-button-child-lock/