Xcode 中的 Debug View Hierarchy 是否允许我查看哪个 View Controller 拥有一个 View ?
最佳答案
更新:从 Xcode 9 开始, View Controller 在可视化调试器中沿着 View 层次结构列出。
你可以在Xcode的inspector中获取选中 View 的内存地址,然后在控制台使用-nextResponder
获取 View 的view controller。
UIView implements this method by returning the UIViewController object that manages it (if it has one) or its superview (if it doesn’t)
关于ios - Xcode Debug View Hierarchy 查找 viewcontroller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37898475/