В настоящее время я работаю с UITableview, который загружает поток пользователей с Facebook. Проблема в том, что изображения, которые попадают в таблицу, загружаются хорошо, но когда пользователь прокручивается, они становятся полностью черными. Вот мой cellForRow Метод:Uitableview Фотографии Показывать, затем повернуть черным
if ([[objectTypes objectAtIndex:indexPath.row] isEqualToString:@"photo"]) {
//this is a picture
if ([facebookPictureObjectIDs objectAtIndex:indexPath.row])
{
if ([sourceArray objectAtIndex:indexPath.row]) {
if ([[sourceArray objectAtIndex:indexPath.row] rangeOfString:[facebookPictureObjectIDs objectAtIndex:indexPath.row]].location != NSNotFound) {
imageCell.imageview.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[sourceArray objectAtIndex:indexPath.row]]]];
NSLog(@"source array objectwith image ID: %@",[facebookPictureObjectIDs objectAtIndex:indexPath.row]);
}else {
NSLog(@"Same Image object id is: %@", [facebookPictureObjectIDs objectAtIndex:indexPath.row]);
}
} else {
NSLog(@"Source Array object NIL NIL NIL");
}
}else {
NSLog(@"Else Called");
}
[imageCell layoutSubviews];
returnCell = imageCell;
}
Спасибо за любую помощь :)