1

为什么以下代码行没有向.array和 . 中添加任何array内容null

 NSString *LIstringURL = [[NSString alloc] initWithFormat:@"http://farm%@.staticflickr.com/%@/%@_%@.jpg",flickrfarmID,flickrServer, flickrID,flickrSecret];

    NSString *SIstringURL = [[NSString alloc] initWithFormat:@"http://farm%@.staticflickr.com/%@/%@_%@_t.jpg",flickrfarmID,flickrServer, flickrID,flickrSecret];

    // NSURL *url = [[NSURL alloc] initWithString:stringURL];
    NSArray *bothImagesArray = [NSArray arrayWithObjects:LIstringURL,SIstringURL, nil];
    [self.urlArray addObject:bothImagesArray];
4

1 回答 1

1

检查可变数组是否启动

self.urlArray = [[NSMutableArray alloc]init];
于 2013-03-06T12:32:17.587 回答