Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone:在视网膜上点击缩略图会变大_Iphone - Fatal编程技术网

iPhone:在视网膜上点击缩略图会变大

iPhone:在视网膜上点击缩略图会变大,iphone,Iphone,当在iPhone4(视网膜显示器)上点击一个项目(UITableView)时,带有editButtonItem的缩略图会变大 [cell.imageView setFrame:CGRectMake(7, 7, 30, 30)]; cell.imageView.image=objPhotoAlbumIcon; 更新: 为了解决这个问题,我使用了自定义图像视图,但问题是编辑图像在编辑时超过了自定义图像 UIImageView * cusomtomImageView=[[UIImageView al

当在iPhone4(视网膜显示器)上点击一个项目(UITableView)时,带有editButtonItem的缩略图会变大

[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];