ustawić punkt przerwania ...Jak mogę uzyskać wartość/klucze obiektów NSDictionary w konsoli debuggera?
jeśli robię:
(lldb) print [self dictionary]
(NSDictionary *) $5 = 0x0945c760 1 key/value pair
ale jeśli robię:
(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
Nawet jeśli próbuję uzyskać dostęp do klucza, że wiem, jest tam ..
(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
Co robię źle?
Pierwszą rzeczą, którą robisz źle, jest oznaczenie tego pytania jako "xcode". –
'po [własny słownik]' – Joe