瀏覽代碼

Fix crash

Alex Jarvis 10 年之前
父節點
當前提交
8269bcea63
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Source/Debugging.swift

+ 3 - 3
Source/Debugging.swift

@@ -107,11 +107,11 @@ private var labelKey = ""
 private func descriptionForObject(object: AnyObject) -> String {
     let pointerDescription = NSString(format: "%p", [object])
     if let object = object as? View {
-        return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>"
+        return "<\(object.dynamicType.description()):\(object.snp_label ?? pointerDescription)>"
     } else if let object = object as? LayoutConstraint {
-        return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>"
+        return "<\(object.dynamicType.description()):\(object.snp_label ?? pointerDescription)>"
     }
-    return "<\(object.dynamicType):\(pointerDescription)>"
+    return "<\(object.dynamicType.description()):\(pointerDescription)>"
 }
 
 private extension NSLayoutRelation {