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

前端 未结 12 840
执念已碎
执念已碎 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条回答
  •  天命终不由人
    2021-02-02 08:42

    In XCode 5.1.1, you can hover over a variable that is a UIView and you will see the following type of popover:

    enter image description here

    If you click on the 'i' button, the following type of output will be printed in the debugger's console:

    >
    

    This is another way of inspecting the frame of a UIView.

提交回复
热议问题