Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 IB 中有一个包含图像的视图。在纵向模式下查看时,图像相当大,如果设备翻转为纵向,则需要缩小图像以适应较窄的屏幕高度。
在 IB 中是否可以为图像指定两种尺寸,一种用于横向,一种用于纵向?
您可以使用 IB 自动将图像视图调整为相对于其周围视图,如果您可以工作,这是一个很好的解决方案,但如果您需要精确的像素大小,您可能需要在代码中执行此操作。