How can I Quick Look custom objects with Xcode 5 visual debugger?

前端 未结 2 1710
既然无缘
既然无缘 2020-12-18 00:36

Xcode 5 has a great new feature where you can hover over a variable name and get a visual representation of a UIColor, UIImage, or even UIBezierPath.

I vaguely reme

2条回答
  •  情深已故
    2020-12-18 01:09

    Now that 5.1 has been officially released I've released this new blog post on the matter.

    To answer your question: Yes, this is indeed a feature available in the new release of XCode (v5.1) and can be used very easily by subclassing an object and returning whatever it is you want to see while debugging in a -(id)debugQuickLookObject method.

提交回复
热议问题