Skip to content

Instantly share code, notes, and snippets.

@fluidsonic
Created December 4, 2015 15:28
Show Gist options
  • Save fluidsonic/947b06a3682803313ada to your computer and use it in GitHub Desktop.
Save fluidsonic/947b06a3682803313ada to your computer and use it in GitHub Desktop.
UISplitViewController sucks!
(lldb) po 0x7c953600 // UISplitViewController
<UISplitViewController: 0x7c953600>
(lldb) po [0x7c953600 childViewControllers] // UISplitViewController's children
NSArray(
<UIViewController: 0x7be5a6e0>,
<UIViewController: 0x7be9b130>
)
(lldb) po [0x7be5a6e0 parentViewController] // master child's parent
nil // obviously wrong
(lldb) po [0x7be9b130 parentViewController] // detail child's parent
<UISplitViewController: 0x7c953600>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment