大家好,我有一本字典值時,我的NSLog返回以下以下內容:如何從此NSDictionary中刪除值?
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data1 options:0 error:nil]; DLog(@"RESPONSE ====== %@",dict);
{
errors = (
{
"@msg" = "already exists";
"@title" = "title";
}
); }
我怎樣才能從中提取味精關鍵數據?
呃,你是什麼意思的提取物?你想獲得與這個鍵對應的數據,還是你想從字典中刪除它? – KIDdAe
我編輯了上面的問題請檢查:)數據對應 – veereev
爲什麼你沒有打擾你的自我,並閱讀NSDictionary類參考https://developer.apple.com/library/mac/documentation/cocoa/reference/foundation/類/ nsdictionary_class /參考/的reference.html – null