如何将键 =0 处的值存储到 nsarray 中?

How to store values at key =0 into nsarray?

我想将所有电子邮件存储到一个数组中。我需要为此做什么?

使用此代码并根据您的要求进行更改

    NSMutableDictionery * repsonseDict = [[NSMutableDictionery alloc]init];
    repsonseDict =  [reponseObj objectForKey@"response"];

    NSArray * allKeys = [repsonseDict allKeys];

    NSMutableArray * emailArr = [[NSMutableArray alloc]init];

    for(int i = 0; i < [allKeys count]; i ++ ){

      NSString * numberKey = [NSString stringWithFormat:@"%d",i];

     [emailArr addObject:[[repsonseDict objectForKey:numberKey]objectForKey:@"email"]];
    }