objective-c - iOS开发 在模拟器视图看到一个View 有方法快速能在代码中找到在哪里定义的吗?
大家讲道理
大家讲道理 2017-04-18 09:05:07
0
2
390

iOS开发 在模拟器视图看到一个View 有方法快速能在代码中找到在哪里定义的吗?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
小葫芦

If you want to know what View this is, if this is a custom view, then using Reveal, you can see the class name of the View class on the layer, and then you can know which one it is. Class.

伊谢尔伦

Debug -> View Debugging -> Capture View Hierarchy

Then as shown below, click to select the view you are interested in. On the left, you can see what type the view is, such as UIImageView. However, if the view is a custom view (such as CustomView), the view will be displayed. Customized class name (CustomView). Once you know the class name, you can just search the code by the class name.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template