хорошо, мне удалось исправить это с помощью этого
- (void)loadImagesForVisibleCells;
{NSArray cell = [self.newsStories visibleCells];[клетки сохраняют];for (int i = 0; i <[cell count]; i ++) {// Пройдите через каждую ячейку в массиве и вызовите ее метод loadContent, если он ответит на него.Рамка CGRect;frame.size.width = 75;frame.size.height = 75;frame.origin.x = 0;frame.origin.y = 0;AsyncImageView </em> asyncImage = [[[AsyncImageView alloc] initWithFrame: frame] autorelease];
//AsyncImageView *asyncImage = (AsyncImageView *)[[cells objectAtIndex: i] retain];
//*flickrCell = (FlickrCell *)[[cells objectAtIndex: i] retain];
NewcastleStories *aStory = [stories objectAtIndex:i];
//AsyncImageView* asyncImage = [[AsyncImageView alloc]init];
[asyncImage emptyImages];
NSURL* url =[NSURL URLWithString:aStory.picture];
[asyncImage loadImageFromURL:url];
//[cells objectAtIndex:i])
static NSString *CellIdentifier = @"ImageCell";
UITableViewCell *cell = [newsStories dequeueReusableCellWithIdentifier:CellIdentifier];
[cell.contentView addSubview:asyncImage];
[[self newsStories]setNeedsLayout];
[[self newsStories] setNeedsDisplay];
//[self dataLoaded];
//[asyncImage loadImage];
//[flickrCell release];
//flickrCell = nil;
}
[cells release];
}
, но его нужно вызывать в главном потоке, используя
[self performSelectorOnMainThread:@selector(loadImagesForVisibleCells) withObject:nil waitUntilDone:YES];