HM-UIView-Inspector is a project mainly written in Objective-C, it's free.
HMViewInspector is simple visual tool for inspecting UIView hierarchy in iOS apps in developpment.
HM UIView Inspector is a simple tool which can be included into any iOS project in development to help inspect all actualy visible UIViews. This project is a test application where you can see how exactly this works. This was programmed from scratch without any planning, so code is a little bit messy as the final idea changed many times during development.
To be able to inspect your view hierarchy, include these 4 files into your project HMInspectorView.h
, HMInspectorView.m
, HMViewInspector.h
and HMViewInspector.m
.
To enable basic inspection call [[HMViewInspector sharedHMViewInspector] enableDefaultInspectionTrigger];
after your main UIWindow
is available . The view hierarchy inspector will show up after triple tap.
You can also set your own UIGestureRecognizer
to call presentInspectorViewHierarchy
.
As this is alpha version a lot of features are missing and there are also some limitations.
CALayer
elements like roundedRect
...UIView
inspector. Everything out of view hierarchy is ignored (independent CALayers)