7 ms·
Awesome, will definitely give this a shot. It's great to see iOS development tools pick up tricks from the web world. Personally, I can't wait for a Firebug-li
by scottostler 14y ago
Awesome, will definitely give this a shot. It's great to see iOS development tools pick up tricks from the web world.
Personally, I can't wait for a Firebug-like tool for live debugging and tweaking of UIView hierarchies.
- irrationalfab 14y agoHave you seen https://github.com/glock45/iOS-Hierarchy-Viewer https://github.com/glock45/iOS-Hierarchy-Viewer?
- scottostler 14y agoYes, and also DCIntrospect. They're encouraging, but don't currently compare to what you can do with, say, live-editing css or with a Javascript console. Not that I've used it, but RubyMotion is making progress on a related front. A live REPL, styling apps with CSS, etc. Maybe we're not far off.
- saurik 14y agoThe live REPL is provided by Cycript (a program I wrote that lets you inject into running iOS/Mac applications: it has a blend of Objective-C and JavaScript syntax with runtime tab-completion; it is used by most of the people doing extension development for jailbroken devices as it lets you dig deeply into any running program quite quickly).
- madewulf 14y agoThat already exists in fact: it's called DCIntrospect. https://github.com/domesticcatsoftware/DCIntrospect https://github.com/domesticcatsoftware/DCIntrospect
- mikelikespie 14y agoPonyDebugger could be extended to support this very easily. We pretty much codegen "controllers" for all of Chrome Developer Tool prootocols's domain. One could map the UIView hierarchy to the DOM by just implementing a delegate. You can look at the "*DomainController" classes here for examples: https://github.com/square/PonyDebugger/tree/master/ObjC/PonyDebugger https://github.com/square/PonyDebugger/tree/master/ObjC/Pony... For implementing DOM-like viewing it would require you to implement PDDOMCommandDelegate defined here: https://github.com/square/PonyDebugger/blob/master/ObjC/DerivedSources/PDDOMDomain.h https://github.com/square/PonyDebugger/blob/master/ObjC/Deri... Docs here: https://developers.google.com/chrome-developer-tools/docs/protocol/tot/dom https://developers.google.com/chrome-developer-tools/docs/pr...