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

前端 未结 12 585
执念已碎
执念已碎 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:28

    Sometimes they are just out of scope by the time you get there.

    Print them to the console:

    NSLog('Frame: %d, %d, %d, %d', frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);
    

提交回复
热议问题