【发布时间】:2015-12-02 09:29:37
【问题描述】:
如果我想要 po subView 的 superview ,当我使用 subView.superView 时,它会抱怨 not found ,但是如果我使用 [subView superView] , po 命令可以正常工作,这背后的原因是什么?
(lldb) po self.blackView.superview
error: property 'superview' not found on object of type 'UIView *'
error: 1 errors parsing expression
(lldb) po ((UIView*)self.blackView).superview
error: property 'superview' not found on object of type 'UIView *'
error: 1 errors parsing expression
(lldb) po [self.blackView superview]
<UIView: 0x15d53ce50; frame = (0 0; 375 667); autoresize = W+H; layer = <CALayer: 0x15d53cfc0>>
【问题讨论】:
-
您使用的是哪个 XCode 版本?
-
LLDB 在使用多个点时会出现解析问题。第一个会起作用,而后一个不会。
-
使用@Leo Xcode 7.1
标签: ios objective-c xcode lldb