Skip to content

Instantly share code, notes, and snippets.

@iccir
Created January 6, 2015 03:22
Show Gist options
  • Save iccir/9c1700d28d51f34afa75 to your computer and use it in GitHub Desktop.
Save iccir/9c1700d28d51f34afa75 to your computer and use it in GitHub Desktop.
iOS 8: 9:41 AM status bar overrides
// Enable 9:41 AM status bar override for easy promo screenshot creation. Works on both device and in simulator
NSInteger (*SBSSpringBoardServerPort)() = dlsym(RTLD_NEXT, "SBSSpringBoardServerPort");
NSInteger (*SBSetShowsOverridesForRecording)(NSInteger, NSInteger) = dlsym(RTLD_NEXT, "SBSetShowsOverridesForRecording");
SBSetShowsOverridesForRecording(SBSSpringBoardServerPort(), 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment