Привет, у меня есть один UItableView с изображениями, заголовком и описаниемuitableview изображения по умолчанию, показывающие разные размеры?
Когда я запустил приложение, я вижу, что изображения отображаются как большие, но если я нажму на эту строку, тогда изображения станут маленькими (исходный размер).
Могу ли я узнать, почему это происходит?
код
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
offerCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.offerImage.layer.masksToBounds=YES;
cell.offerImage.layer.cornerRadius=9.0;
cell.backgroundColor=[UIColor clearColor];
if([offertitle count]>0){
// Configure the cell...
NSLog(@"%@",backupImage);
[cell.offerImage setImageWithURL:[NSURL URLWithString:[backupImage objectAtIndex:indexPath.row]]placeholderImage:[UIImage imageNamed:@"Placeholder.png"]]
;
cell.offerTitle.text=[offertitle objectAtIndex:indexPath.row];
cell.offerDetails.text=[offerDetails objectAtIndex:indexPath.row];
}
// cell.websiteImage.image=[imageArray objectAtIndex:indexPath.row];
return cell;
}
Можете ли вы объяснить, пожалуйста ... – Bangalore