Hallo zusammen,
ich habe ein kleines Schönheits problem und zwar habe ich in meinem Tableview imageviews welche bilder anzeigen die in Core Data gespeichert sind. Doch leider hängt der tableview wenn ich scrolle
hier mein code
Alles anzeigen
Danke schonmal im voraus
ich habe ein kleines Schönheits problem und zwar habe ich in meinem Tableview imageviews welche bilder anzeigen die in Core Data gespeichert sind. Doch leider hängt der tableview wenn ich scrolle
hier mein code
Quellcode
-
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- static NSString *CellIdentifier = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
- if (cell == nil) {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
- }
- // Configure the cell...
- Todo *todo = [self.fetchedResultsController objectAtIndexPath:indexPath];
- UIImageView *preView_imageView = (UIImageView *)[cell viewWithTag:6];
- NSData * imageData;
- imageData = todo.image;
- preView_imageView.layer.cornerRadius = 9.0;
- preView_imageView.clipsToBounds = YES;
- return cell;
- }
Danke schonmal im voraus