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 的麦克风,然后让它进入睡眠模式,如果我已经构建了 UI,我将如何启动这样的应用程序?就像我如何在应用程序在后台运行时随时检测到麦克风爆炸,然后让它进入待机模式?
你将无法做到这一点。虽然您可以检测到“打击”,但您无法使用官方 API 将 iOS 设备置于待机模式