【发布时间】:2012-08-13 05:31:34
【问题描述】:
我设置了一个断点...
如果我这样做:
(lldb) print [self dictionary]
(NSDictionary *) $5 = 0x0945c760 1 key/value pair
但如果我这样做:
(lldb) print [[self dictionary] allKeys]
error: no known method '-allKeys'; cast the message send to the method's return type
error: 1 errors parsing expression
即使我尝试访问我知道在其中的密钥..
(lldb) print [[self dictionary] objectForKey:@"foobar"]
error: no known method '-objectForKey:'; cast the message send to the method's return type
error: 1 errors parsing expression
我做错了什么?
【问题讨论】:
-
您做错的第一件事就是将此问题标记为“xcode”。
标签: objective-c ios lldb