Road Trip DJ - Part 12

Episode #167 | 13 minutes | published on April 30, 2015
Subscribers Only
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!

blog comments powered by Disqus