Xcode Debug View Hierarchy Search Hierarchy Management

Is the debug view hierarchy in Xcode so that I can see which view controller has the view?

+7
debugging ios xcode
source share
1 answer

Update: Starting with Xcode 9, view controllers are listed right along the view hierarchy in the visual debugger.

You can get the memory address of the selected view from the inspector in Xcode, and then use the console to get the view view controller using -nextResponder .

http://developer.apple.com/library/ios/documentation/uikit/reference/UIResponder_Class/Reference/Reference.html#//apple_ref/occ/instm/UIResponder/nextResponder

UIView implements this method by returning a UIViewController object that controls it (if any) or its supervisor (if not)

+13
source share

All Articles