Archive for category tag

How to inspect subviews hierarchy of any UIView

Posted on January 7, 2012 by Lukas under iOS development | 7 comments

In this programming tutorial (or guide, if you want so), I am going to explain a simple way of printing out the entire subviews hierarchy of any UIView (subclass). We are going to accomplish this by creating a Category on UIView, and adding a single recursive method which will do its job of going down through the entire tree-structure of the view.