代码之家  ›  专栏  ›  技术社区  ›  suse

查看NSMutableDictionary的内容

  •  3
  • suse  · 技术社区  · 15 年前

    NSMutableDictionary ?

    2 回复  |  直到 10 年前
        1
  •  6
  •   Vladimir    15 年前

    只需在控制台中打印内容:

    NSLog(@"%@", [yourDict description]);
    

    for (id key in [yourDict allKeys]){
       id obj = [yourDict objectForKey: key];
       // Do something with them
    }
    
        2
  •  2
  •   Luda    12 年前
    NSLog(@"yourMutableDictionary - %@",yourMutableDictionary);