如何以编程方式唤醒连接到 iPad 的外部屏幕
我正在开发一个由 iPad 2 和外部屏幕组成的独立信息亭。我用电缆将两者连接起来,并将iPad锁在一个特殊的盒子里以防止它消失。这种情况下无法接触到连接器。
我遇到的问题是,当 iPad 从睡眠状态(用户交互)唤醒时,屏幕通常不会唤醒。然而,一旦屏幕唤醒,它就永远不会出现自行休眠的问题(这排除了物理连接问题)。在多次尝试打开/关闭显示器或让 ipad 进入睡眠状态然后将其唤醒后,我设法唤醒屏幕。
我的猜测是,当显示器扫描信号时,iPad 无法发送信号。然而,经过几次尝试,我让他们都在正确的时间做他们的事情,这就是一切开始发挥作用的时候。
因此就有了这个问题。我可以通过编程方式让 ipad 扫描(发送信号到)外部显示器吗?理想情况下,我会从我正在开发的应用程序中完成此操作,但独立的应用程序也可以解决一个问题。
我已经浏览了 UIScreen 类参考并用谷歌搜索了很多,但到目前为止没有结果。
I'm developing a standalone kiosk that is composed of an iPad 2, and an external screen. I have the two connected by cable, and the iPad is locked in a special case to prevent it from disappearing. This case makes the access to the connector impossible.
The problem I have is that when the iPad wakes from sleep (user interaction) the screen often doesn't wake up. Once the screen awake however, there is never a problem of it going to sleep by itself (this rules out a physical connection problem). I manage to wake up screen after several tries of switching on/off the monitor or letting the ipad fall a sleep and then waking it up.
My guess is that the iPad fails to send the signal while the monitor is scanning for it. However, after several tries I get them both to do their things at the right time, and that is when it all starts to work.
Hence the question. Can I programmatically make the ipad scan (send signal to) the external monitor? Ideally I would do it from the app I'm developing, but a standalone app could solve a trick too.
I've looked through the UIScreen Class reference and googled quite a bit, but so far to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论