iPhone:在视网膜上点击缩略图会变大
当在iPhone4(视网膜显示器)上点击一个项目(UITableView)时,带有editButtonItem的缩略图会变大iPhone:在视网膜上点击缩略图会变大,iphone,Iphone,当在iPhone4(视网膜显示器)上点击一个项目(UITableView)时,带有editButtonItem的缩略图会变大 [cell.imageView setFrame:CGRectMake(7, 7, 30, 30)]; cell.imageView.image=objPhotoAlbumIcon; 更新: 为了解决这个问题,我使用了自定义图像视图,但问题是编辑图像在编辑时超过了自定义图像 UIImageView * cusomtomImageView=[[UIImageView al
[cell.imageView setFrame:CGRectMake(7, 7, 30, 30)];
cell.imageView.image=objPhotoAlbumIcon;
更新:
为了解决这个问题,我使用了自定义图像视图,但问题是编辑图像在编辑时超过了自定义图像
UIImageView * cusomtomImageView=[[UIImageView alloc] init];
cusomtomImageView.frame=CGRectMake(7, 7, 30, 30);
cusomtomImageView.image=objPhotoAlbumIcon;
cell addSubview:cusomtomImageView];
[cusomtomImageView release];
我需要一些建议。花了几个小时后,我在编辑模式下使用自定义图像和标签修复了上述问题。 只需添加cell.contentView
[cell.contentView addSubview:cusomtomImageView];
这是密码
UIImageView * cusomtomImageView=[[UIImageView alloc] init];
cusomtomImageView.frame=CGRectMake(7, 7, 29, 29);
cusomtomImageView.image=objPhotoAlbumIcon;
[cell.contentView addSubview:cusomtomImageView];
[cusomtomImageView release];
UILabel *cusomtextlebel=[[UILabel alloc] init];
cusomtextlebel.frame=CGRectMake(45, 8, 180, 24);
cusomtextlebel.text=subPhotoAlbumTitle;
[cusomtextlebel setFont:[OntdekZeelandFonts getFontForObjectLabel]];
cusomtextlebel.backgroundColor = [UIColor clearColor];
cusomtextlebel.highlightedTextColor = [UIColor whiteColor];
[cell.contentView addSubview:cusomtextlebel];
[cusomtextlebel release];
花了几个小时后,我在编辑模式下使用自定义图像和标签修复了上述问题。 只需添加cell.contentView
[cell.contentView addSubview:cusomtomImageView];
这是密码
UIImageView * cusomtomImageView=[[UIImageView alloc] init];
cusomtomImageView.frame=CGRectMake(7, 7, 29, 29);
cusomtomImageView.image=objPhotoAlbumIcon;
[cell.contentView addSubview:cusomtomImageView];
[cusomtomImageView release];
UILabel *cusomtextlebel=[[UILabel alloc] init];
cusomtextlebel.frame=CGRectMake(45, 8, 180, 24);
cusomtextlebel.text=subPhotoAlbumTitle;
[cusomtextlebel setFont:[OntdekZeelandFonts getFontForObjectLabel]];
cusomtextlebel.backgroundColor = [UIColor clearColor];
cusomtextlebel.highlightedTextColor = [UIColor whiteColor];
[cell.contentView addSubview:cusomtextlebel];
[cusomtextlebel release];