TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Useful tools for debugging your view layouts.
When a view looks a bit out of place and you can't be tell why, use PTLViewDebugger to figure it out. PTLViewDebugger helps you debug your views by adding colored borders to your view hierarchy just use ptl_showDebugBorder
to add a randomly colored border to the view or ptl_identifyViewLayout
to add a border to the view hierarchy you're debugging. If that's not enough, PTLViewDebugger enhances the private recursiveDescription
API so that if you use that while debugging the resulting wall of text is styled with the border colors of each view.
Additional utilities are included for visually debugging views using autolayout. Use ptl_identifyViewsWithAmbiguousLayout
and ptl_startAutoLayoutDance
to easily identify which views have ambiguous layout.
[view ptl_identifyViewLayout];
NSLog(@"%@", [view recursiveDescription]);
Find the address of view you want to debug
[0x12345678 ptl_identifyViewLayout]
[0x12345678 recursiveDescription]
Resume execution so the view updates to display the style
In app:
In Xcode debugger:
[view ptl_identifyViewsWithAmbiguousLayout];
[view ptl_startAutoLayoutDance:YES];
Find the address of view you want to debug
[0x12345678 ptl_identifyViewsWithAmbiguousLayout]
[0x12345678 ptl_startAutoLayoutDance:YES]
Resume execution so the view updates to display the style and the animation can start.
In app:
Brian Partridge - @brianpartridge on Twitter and App.Net