简体   繁体   English

点击按钮如何复制主页按钮双击效果?

[英]How to replicate home button double tap effect on click of a button?

In IOS, when we double tap the home button, it lift's the current app and shows all the app that are running on the bottom. 在IOS中,当我们双击主页按钮时,它会提升当前应用程序并显示底部运行的所有应用程序。 I can scroll the bottom and select the music player option from there. 我可以滚动底部并从那里选择音乐播放器选项。 I want to achieve the same screen lift effect, when user taps a button from withing the app instead of double tapping the home button. 我希望获得相同的屏幕提升效果,当用户点击应用程序而不是双击主页按钮时。 Is it possible to that? 有可能吗? If yes, how can we do it? 如果是,我们该怎么做?

No the home button function (unless jailbroken) cannot be re-created inside your UI. 无法在UI内重新创建主页按钮功能(除非越狱)。

Also since iOS6 users can opt to have Guided Access enabled, if that button where to be created would be considered useless. 此外,由于iOS6用户可以选择启用引导访问,如果该按钮在哪里创建将被视为无用。 Now that would be a pain to do in a de-bugging process. 现在,在一个调试过程中,这将是一件痛苦的事。

You would have to access the Home Button API (if there was one) as well as the guided access API. 您必须访问Home Button API(如果有的话)以及指导访问API。

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

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