Episode #167

Road Trip DJ - Part 12

Series: Road Trip DJ

13 minutes
Published on April 30, 2015

This video is only available to subscribers. Get access to this video and 490 others.

In this episode I do some deep auto-layout constraint debugging with Reveal, and discuss how to make our header resize based on the device we're running on.

Episode Links

Activating Reveal with Breakpoints

I am really uneasy about changing project settings to enable Reveal, as it is not advisable to ship with the framework linked. Because of this, I prefer the breakpoint-lldb magic command documented on their integration guide.

The short of it is this:

  • Create a Symbolic Breakpoint
  • set the Symbol Name to UIApplicationMain
  • Check Add Action, set to Debugger command
  • Type in expr (Class)NSClassFromString(@"IBARevealLoader") == nil ? (void *)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2) : ((void*)0)
  • Check Automatically continue after evaulating

Then you just toggle the breakpoint when you want Reveal to be activated. Woot!

Comments are temporarily disabled.