iOS 字典中取字典,字典中取数组,字典中取字符串,字典套字典中取字典,字典套字典中取数组,字典套字典中取字符串

    //字典中取字典
    NSDictionary  *result1 = [dic objectForKey:@"result"];
    //字典中取数组
    NSArray *arrlist1 = [dic objectForKey:@"arr"];
    //字典中取字符串
    NSString *str1 = [dic objectForKey:@"string"];
    
    //字典套字典中取字典
    NSDictionary  *result2 = [[dic objectForKey:@"list"] objectForKey:@"result"];
    //字典套字典中取数组
    NSArray *arrlist2 = [[dic objectForKey:@"list"] objectForKey:@"arr"];
    //字典套字典中取字符串
    NSString *str2 = [[dic objectForKey:@"list"] objectForKey:@"string"];

 

posted on 2022-04-09 03:38  高彰  阅读(148)  评论(0编辑  收藏  举报

导航