开发者

iPad VGA output - how to remove the extra UIScreen

开发者 https://www.devze.com 2023-01-05 04:35 出处:网络
I have the need to display a specific view on a separate screen, similar to how Key开发者_如何学Cnotes handles presentation mode.

I have the need to display a specific view on a separate screen, similar to how Key开发者_如何学Cnotes 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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号