davbryn
davbryn

Reputation: 7176

iPad VGA output - how to remove the extra UIScreen

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.

Upvotes: 0

Views: 527

Answers (1)

rjobidon
rjobidon

Reputation: 3155

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!

Upvotes: 1

Related Questions