简体   繁体   English

将Xcode自动版式用于iPhone上的不同图像尺寸

[英]Use Xcode Auto Layout for different image sizes on iPhone

With Auto Layout for iPhones in Portrait, I don't want the exact same size UIImageViews for game characters on iPhone 6+ as in iPhone 4S. 使用纵向iPhone的自动版式,我不希望iPhone 6+上的游戏角色具有与iPhone 4S完全相同的UIImageViews尺寸。 The 4S characters need to be smaller or else they'll look too big. 4S字符必须较小,否则看起来太大。 Using Auto Layout how do I change image sizes between iPhones because they seem like they all change to be the same sizes regardless of constraints. 使用自动版式,如何更改iPhone之间的图像大小,因为无论约束如何,它们看起来都变成了相同的大小。

I am sure that they would be smaller because when you add images, you add 3 sizes of the image: @1x, @2x, and @3x. 我确信它们会更小,因为添加图像时,会添加3种尺寸的图像:@ 1x,@ 2x和@ 3x。 These images make the image universal for all Apple devices. 这些图像使该图像在所有Apple设备上通用。 Try them out in your simulator. 在您的模拟器中尝试一下。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不同的iPhone屏幕尺寸下使用纵向和横向自动布局 - how to use auto layout in portrait and landscape for different iphone screen sizes 如何使用Xcode 8上的自动布局为不同屏幕尺寸调整对象大小? - How to resize objects for different screen sizes using auto layout on Xcode 8? 如何在XCode的自适应自动布局中为相同大小的类声明不同的字体大小? - How to declare different font sizes for same size class in adaptive auto layout in xcode? iOS:使用自动版式缩放以适合不同的屏幕尺寸 - iOS: Scaling for different screen sizes with Auto Layout 在Xcode中将图像大小调整为不同的iPhone屏幕大小 - adjusting images sizes to different iPhone screen sizes in Xcode 如何在Xcode中的不同iPhone尺寸类中使用不同尺寸的图像 - How to use different size of image in different iPhone size classes in Xcode 我没有在Xcode的“自动布局”部分的底部看到iPhone 6、6S尺寸来调整我的视图。 我只看到4s,SE,7和7 Plus尺寸 - I am not seeing iPhone 6, 6S sizes in bottom side in Auto Layout section in Xcode to adjust my view. I just see 4s, SE, 7 and 7 Plus sizes Xcode自动布局问题,屏幕尺寸较小 - Xcode Auto-Layout Issue for smaller screen sizes 如何使用自动布局为UIView给出两种尺寸(iPhone和iPad)? - how to give two sizes(for iPhone and iPad ) for UIView using auto layout? 不同iOS iPhone尺寸的全屏图像 - Fullscreen image on different iOS iPhone sizes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM