私がしなければ、私は...デバッガコンソールでNSDictionaryオブジェクトの値/キーを取得するにはどうすればよいですか?
をブレークポイントを設定します。
(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」とタグを付けることです。 –
'po [自己辞書]' – Joe