0

この問題のエラーが表示されるのはなぜですか?

タイプ「NSUInteger」のパラメーターに「NSArray *__strong」を送信する整数変換への互換性のないポインター

#import "FSConverter.h"
#import "FSVenue.h"

@implementation FSConverter


- (NSArray *)convertToObjects:(NSArray *)venues {

     NSMutableArray *objects = [NSMutableArray arrayWithCapacity:venues];
        for (NSDictionary *v  in venues) {
        FSVenue *ann = [[FSVenue alloc]init];
        ann.name = v[@"name"];
        ann.venueId = v[@"id"];


        ann.location.address = v[@"location"][@"address"];
        ann.location.distance = v[@"location"][@"distance"];

        [ann.location setCoordinate:CLLocationCoordinate2DMake([v[@"location"][@"lat"] doubleValue],
                                                  [v[@"location"][@"lng"] doubleValue])];
        [objects addObject:ann];
     }

     return objects;
}

@end

エラーは次の行にあります。

    NSMutableArray *objects = [NSMutableArray arrayWithCapacity:venues];
4

1 に答える 1