iPhone — is it possible to inspect the frame of a UIView in the Xcode debugger?

前端 未结 12 565
执念已碎
执念已碎 2021-02-02 08:18

When the debugger is stopped at a breakpoint, I can\'t find the frame of any of my UIViews in there.

Is it possible to do this?

EDIT: starting a bounty due to th

12条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 08:35

    Yes, you can do it. While debugging, find the UIView of interest in the variable inspector. Control-click on it and select "Print Description to Console". For example, I did this on the _view ivar of a UIViewController and the following appeared in the console:

    Printing description of _view:
    >

提交回复
热议问题