Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用长按音量键或其他按键序列等快捷键来启动我的应用程序。iPhone真的可以吗?
Answer is simply no.
Apple won't allow you to do this.
They won't allow you to integrate your application with their hardware interface.
如果您只想对您控制的设备执行此操作,那么您可以通过越狱来实现。
不,这对于启动应用程序是不可能的。
即使在应用程序中苹果不希望您使用硬件按钮,相机应用程序也有例外。
这是一个线程,其中包含在应用程序中使用的详细信息: 使用音量按钮作为输入