我已經實現了異步圖像視圖,以便在自定義單元格視圖中加載圖像,但圖像在單元格上顯示爲很小。所以我需要在點擊圖像視圖時顯示該圖像的放大形式。我怎樣才能做到這一點?在iPhone中單擊圖像視圖時放大顯示圖像
這是我的代碼:
if (cell == nil) {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
//create new cell
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
//common settings
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
cell.layer.cornerRadius = 10;
cell.layer.masksToBounds = YES;
cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
cell.imageView.frame = CGRectMake(10.0f, 10.0f, 60.0f, 44.0f);
cell.imageView.backgroundColor = [UIColor colorWithRed:73 green:73 blue:73 alpha:1];
cell.imageView.image = [UIImage imageNamed:@"Placeholder.png"];
imgBtn=[cell imageView];
objectAtIndex:indexPath.row]objectForKey:@"Name"];
cell.imageView.imageURL = [NSURL URLWithString:[[detailsList objectAtIndex:indexPath.row]objectForKey:@"image_url"]];
}
我想觸摸到細胞內的圖像視圖放大圖像。有任何想法嗎?提前致謝。
現在工作嗎? – 2012-07-10 09:45:16
@Simha.hb s bose .. :) – 2012-07-10 09:51:19