我有这个属性:
@property (retain, nonatomic) IBOutlet UIButton *dismissKeyboardButton;
和此行之后的断点:
self.dismissKeyboardButton.hidden = NO;
代码在此断点后停止。在 lldb 控制台中,我使用以下命令检查按钮:
(lldb) po self.dismissKeyboardButton
$2 = 0x0966b240 <UIButton: 0x966b240; frame = (431 234; 49 44); opaque = NO; autoresize = TM+BM; layer = <CALayer: 0x966b300>>
但是,我无法检查其 UIView 超类的属性,例如
(lldb) po self.dismissKeyboardButton.hidden
error: expected getter method not found on object of type 'UIButton *'
error: 1 errors parsing expression
您可以通过 lldb 访问超类上的 getter 方法吗?如果可以,如何访问?