Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Apple 私有 API,[view recursiveDescription]返回nilApportable,如何转储视图层次结构?有没有可能,除了手工建造吗?
[view recursiveDescription]
nil
从 gdb :print [[[UIApplication sharedApplication] keyWindow] dumpGeometry:0]将层次结构输出到 logcat。
print [[[UIApplication sharedApplication] keyWindow] dumpGeometry:0]
还要使用 Android 的层次结构查看器: