domesticcatsoftware / DCIntrospect

Small library of visual debugging tools for iOS.
domesticcat.com.au/projects/introspect
MIT License
2.18k stars 266 forks source link

Add #69

Closed rlaferla closed 10 years ago

rlaferla commented 10 years ago

To make it easier to read debug logs, add this category and make it so that when you tap on a view, it displays the tag name along with the class name. Also, the debug output should display these tags.

e.g.

[myview setNametag:@"My main view"]

when you tap on it, DCIntrospect should display "UIView - My main view {{0,0},{320,568}}" on the top status bar. Without this, you would only see "UIView" which is not helpful when you have many views and subviews!

Category code:

@interface UIView (NameTags)

@implementation UIView (NameTags)

// Nametag setter

// Return 'Class description : hex memory address'

@end