Xcode debugging - displaying images

前端 未结 7 863
臣服心动
臣服心动 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 15:54

    Use Quick Look to inspect images in the Xcode debugger.

    Select an NSImage or UIImage in the debugger, then click the Quick Look "eye" icon.

    Like other areas of OS X, you can also use spacebar to Quick Look!

    Viewing a UIImage in the Xcode debugger via Quick Look

    Quick Look in the debugger can also be implemented for your own classes:

    Enabling Quick Look for Custom Types

    The variables Quick Look feature in the Xcode debugger allows you to obtain a quick visual assessment of the state of an object variable through a graphical rendering, displayed in a popover window either in the debugger variables view or in place in your source code.

    This chapter describes how you implement a Quick Look method for your custom class types so that object variables of those types can also be rendered visually in the Quick Look popover window.

提交回复
热议问题