English Original:
http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/
inadvertently see iOS with Debugging Tools
1, just add the following code in the Appdelegate
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions {····· #ifid overlayclass = nsclassfromstring (@ "uidebugginginformationoverlay " ); [Overlayclass performselector:nsselectorfromstring (@ "preparedebuggingoverlay" )]; #endif ·······}
2. Operation
After running, with two fingers in the status bar at the same time click on the display can be displayed in the suspended layer of debugging.
3. Effect
4. Function Introduction
- View Hierarchy (viewing hierarchical relationships)
- VC hirarchy (view Viewcontroller hierarchy Relationship)
- Ivar explor (View variables)
- Spec Compare (add design and current effect comparison)
- System Color Audit (unknown)
5. Practical Summary
for development, because Xcode is so powerful that this function is estimated to be chicken ribs, so there is not much development that cares about this feature.
For the UI, they will not see the issue for each element.
So this place is purely entertaining ....
IOS UI Debugging Tool--Uidebugginginformationoverlay