Imagens de dados principais do desktop para o iphone
Criei uma ferramenta simples de entrada de dados para mac que uso com um aplicativo para iPhone. Eu adicionei recentemente miniaturas que adicionei por meio de um Image Well usando ligações simples. É um tipo de dados transformável que parece funcionar bem.
O aplicativo para iPhone, no entanto, não mostra as imagens. O atributo não é nulo, mas não consigo exibir uma imagem. O seguinte é para cellForRowAtIndexPath
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
NSManagedObject *entity = nil;
if ([self.searchDisplayController isActive])
entity = [[self filteredListContent] objectAtIndex:[indexPath row]];
else
entity = [fetchedResultsController objectAtIndexPath:indexPath];
cell.textLabel.text = [entity valueForKey:@"name"];
//cell.imageview.image = [UIImage imageNamed:@"ImageB.jpeg"]; //works fine
cell.imageView.image = [entity valueForKey:@"thumbnail"];//no error, but no file
return cell;
Estou pensando que o problema está no transformável (estou usando o NSKeyedUnarchiveFromData padrão) ou como estou chamando a miniatura. Eu sou um novato, então qualquer ajuda seria muito apreciada.