iPad VGA 输出 - 如何删除多余的 UIScreen
我需要在单独的屏幕上显示特定视图,类似于 Keynotes 处理演示模式的方式。
我通过检查有多少屏幕可用,然后添加我想要显示为第二个窗口的子视图的视图,成功地管理了此操作。
但是,如果我关闭处理子视图创建的父视图,则第二个屏幕永远不会“禁用”,并且视图仍保留在屏幕上。我是否缺少某种形式的 [externalWindow removeSubview]
调用?我在创建它的类的dealloc方法中释放了添加到额外窗口的视图,但不确定应该如何处理额外窗口。
I have the need to display a specific view on a separate screen, similar to how Keynotes handles presentation mode.
I've managed this successfully by checking how many screens are available, and then adding the view I want displayed as a subview of the second window.
However, if I dismiss the parent view that handles the creation of the subview, the second screen is never 'disabled' and the view remains on screen. Is there some form of [externalWindow removeSubview]
call that I am missing? I release the view I've added to the extra window in the dealloc
method of the class that creates it, but am not sure how i should be handling the extra window.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为外部窗口会保留最后输出的副本,直到您的应用程序(或另一个应用程序)输出新内容。在禁用输出之前尝试清空外部窗口。您可以尝试设置 externalWindow.backgroundColor = [UIColor blackColor] 或在禁用输出之前添加临时黑色 UIView。
祝你好运!
I think the external window keeps a copy of the last output until your app (or another app) outputs something new. Try blanking the external window before disabling output. You can try setting externalWindow.backgroundColor = [UIColor blackColor] or adding a temporary black UIView before disabling output.
Good luck!