Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Airplay: Creating Apps with (Split) Personality

Jay Thrash
September 11, 2013

Airplay: Creating Apps with (Split) Personality

My presentation on Airplay given at 360iDev 2013 in Denver, CO

Jay Thrash

September 11, 2013
Tweet

More Decks by Jay Thrash

Other Decks in Technology

Transcript

  1. AirPlay: Creating Apps with (Split) Personality 360iDev September 2013 Denver,

    CO Jay Thrash @jaythrash jaythrash.com Wednesday, September 11, 13
  2. Detection (Active) if ([[UIScreen screens] count] > 1) { //

    You have an external screen! } Wednesday, September 11, 13
  3. Initialization (do my bidding!) externalScreen.currentMode = selectedMode; CGRect windowFrame =

    CGRectZero; windowFrame.size = selectedMode.size; UIWindow *externalWindow = [[UIWindow alloc]init]; externalWindow.screen = externalScreen; externalWindow.frame = windowFrame; Wednesday, September 11, 13
  4. Implementation UIKit App? • externalWindow addSubview: to draw elements on

    externally • manually scale & position assets relative to screen resolution (@2x only applies to mainScreen) Wednesday, September 11, 13
  5. Implementation Perfomance App? (Game) • UIScreenOverscanCompensation handles pixel loss at

    screen edges • displayLinkWithTarget:selector sync drawing with refresh rate Wednesday, September 11, 13