Table of contents


Undocument methos for debugging

這些api都是 obj c的 private method,在 swift環境下是沒法直接用的,這邊有解法

  • _recursiveDescription (or recursiveDescription)
  • _autolayoutTrace
  • -_ivarDescription
  • -_methodDescription

四個可以客製 debug 格式的 protocols

  • CustomStringConvertible
  • CustomDebugStringConvertible
  • CustomPlaygroundQuickLookable
  • CustomReflectable