Skip to content

An Objective-C class that helps you debug by showing the view hierarchy of whatever you tap on.

Notifications You must be signed in to change notification settings

bedinotti/Viewfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewfinder

An Objective-C class that helps you debug by showing the view hierarchy of whatever you tap on.

Usage

In your app delegate, include "CDViewfinder.h". After [self.window makeKeyAndVisible] add the following line:

[CDViewfinder start]

That's it! Now whenever someone taps on the screen, the console's log will show a concise description of the view hierarchy leading to that view, and which UIViewControllers are responsible for each of those views:

UIWindow - (null)
   UILayoutContainerView - ABCNavigationController
      UINavigationTransitionView - ABCNavigationController
         UIViewControllerWrapperView - ABCNavigationController
            UIView - ABCBrowseViewController
               UIScrollView - ABCBrowseViewController
                  UITableView - ABCBrowseTableViewController

About

An Objective-C class that helps you debug by showing the view hierarchy of whatever you tap on.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published