将图片添加到Interface Builder中的UIimageview时,图片很小 [英] Pictures are very small when added to UIimageview in Interface Builder

查看:37
本文介绍了将图片添加到Interface Builder中的UIimageview时,图片很小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有6张图像,所有尺寸均相同(65x65).创建图像视图并通过界面生成器中的图像视图属性"添加该图像时,图片很小.也许是5x5.当在资源文件夹中查看图片时,它们的图片也会变小,但是,运行该程序时,它们的尺寸是正确的.我需要更改一些设置以使图像在界面生成器中显示完整尺寸/完整分辨率吗?

I have 6 images, all the same size (65x65). When I create an imageview and add this image through the "image view attributes" in the interface builder, the picture is very small. Maybe 5x5. The pictures also show up small when viewing them in the resource folder however, when running the program, they are the right size. Is there some setting I need to change to get the images to show the full size/full resolution within the interface builder?

谢谢.

推荐答案

确保您的UIImageView处于活动状态,然后转到Layout-> Size to Fit(Command +'='也可以解决问题).这样,UIImageView将调整大小以适合图像,并且在IB中查看内容时看起来会很好.

Make sure your UIImageView is active, then go to Layout -> Size to Fit (Command + '=' should also do the trick). This way the UIImageView will resize to fit the image and it'll look nice when looking at your stuff in IB.

这篇关于将图片添加到Interface Builder中的UIimageview时,图片很小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆