Skip to content

Instantly share code, notes, and snippets.

View creatd's full-sized avatar

Creatd Software creatd

View GitHub Profile
@creatd
creatd / ExternalScreen.m
Created July 5, 2014 09:32
Connecting to external screen (AirPlay)
static FOScreenVC *_vcScreen;
static UIWindow *_externalWindow;
- (void)setupExternalScreen:(UIScreen *)screen {
// Ensure screen is full size
screen.overscanCompensation = UIScreenOverscanCompensationInsetApplicationFrame;
// Create a window for the external screen (if not already)
if (!_externalWindow) {
_externalWindow = [[UIWindow alloc] initWithFrame:screen.bounds];