I’ve mentioned a number of projects to aid in debugging user interfaces such as Hierarchy Detective which allows you to see user interface elements in a 3d space.
Here’s an open source library submitted by Rafa? Wójcik designed to help aid in debugging interfaces by allowing you to define all view controllers in your application so you can easily list them and decide which should appear on start. You can also define actions that should show before a controller shows.
Here’s an exmaple from the readme showing how to initialize CCDebugHelper and display all controllers in a list and show a specific controller:
MyDebugHelper *viewDebuger = [[MyDebugHelper alloc] initWithWindow:self.window];
// tell CCDebugHelper to show list of controllers
[viewDebuger showControllersList];
// this method will show first view controller from config list
[viewDebuger showControllerWithConfigIndex:0];
You can find CCDebugHelper on Github here.
Note: Because of problems with Cocoapods you will need to import CCDebugHelper from Github like this:
A nice library to aid with interface debugging.
- iOS Hierarchy Viewer For Easier User Interface Debugging And Tweaking
- Open Source Tool For Debugging iOS User Interfaces Featuring A 3D Viewer And More
- Tutorial: Objective-C Debugging Basics With Xcode 4
- Premium iOS Tool For Realtime User Interface Debugging, Tweaking And More
- Download A New Tool With Real Time iOS View Debugging And A 3D Perspective
Original article: Open Source iOS Library For Faster User Interface Debugging
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.