Xcode debugging - displaying images

前端 未结 7 830
臣服心动
臣服心动 2020-12-07 15:04

I love using the Xcode debugger. You can take a look at a variable\'s value and even change it.

But can I somehow DISPLAY the image that is referenced by an image va

相关标签:
7条回答
  • 2020-12-07 16:05

    What if you can't get to the image via the variables view?

    Echoing what @pkamb said - you can use the variables view to quick look at an image. But what if you can't get to the image?

    for example I have an image at (contentViewController.view.subviews[0].subviews[1] as? UIImageView).image

    but if I try to expand contentViewController in the variable view it doesn't expose my subviews

    what you can do is right click, add an expression, and then you can see it!

    0 讨论(0)
提交回复
热议问题