Multiple methods named “count” found with mismatched result, parameter type or attributes

后端 未结 6 2122
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 04:10

Since the update to Xcode 5.1 I can\'t archive my project any more. Xcode always says \"Multiple methods named \"count\" found with mismatched result, parameter type or attr

6条回答
  •  眼角桃花
    2020-12-19 04:55

    try with like this

    for ( int i = 0; i<[(NSArray *)parseJSONArray count];i++){
        for (int j = 0; j<[JSON[@"data"][@"menu"][i][@"item"] count];j++){
            [pictureURL addObject:JSON[@"data"][@"menu"][i][@"item"][j][@"image"]];
        }
    }
    

    you need to passing

    parseJSONArray

    type of NSArray

提交回复
热议问题