简体   繁体   English

我可以只为我的应用程序使用2套背景图片,但仍支持iPhone 5吗?

[英]Can I use just 2 sets of background pictures for my app and still support iphone 5?

I have 2 files called image.png and image@2x.png sizes: 320x568 and 640x1136. 我有2个名为image.png和image@2x.png的文件:320x568和640x1136。 If I use those files as background, does this solve the dead space on the iphone 5? 如果我将这些文件用作背景,是否可以解决iPhone 5上的死区? Will the iphone 5 load the @2x picture? iPhone 5会加载@ 2x图片吗? I understand that in an iphone with 3.5 and lower the background picture will get cut but I don't really care about it. 我知道在3.5及以下版本的iPhone中,背景图片会被剪切掉,但我并不在乎。

I have a project that is for both iPhone 5 and the four. 我有一个同时适用于iPhone 5和iPhone 4的项目。 For my background image, I made a uiview that was the size of the entire view. 对于我的背景图片,我创建了一个uiview,它是整个视图的大小。 I then hooked this up to my background jpeg file. 然后,我将其连接到我的背景jpeg文件中。 Under mode in the attributes inspector, I selected scale to fill. 在属性检查器的模式下,我选择要填充的比例。 Since the uiview is held to all sides of the view, it works for both. 由于uiview固定在视图的所有侧面,因此对两者都适用。 It looks great in either size screen. 在任何尺寸的屏幕上看起来都很棒。 The jpeg is pretty high res, but I didnt need to place any @2x. jpeg的分辨率很高,但是我不需要放置任何@ 2x。 Hope this helps you out. 希望这可以帮助你。

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

相关问题 我可以将Alamofire更新到版本4,并且在我的应用程序中仍然支持iOS 8吗? - Can I update Alamofire to version 4 and still support iOS 8 in my app? 我可以将我的应用程序的支持限制为仅 iOS 13 - Can I limit support of my app to just iOS 13 我可以让我的iPhone应用程序仅使用一部分屏幕吗 - Can I make my iphone app use only a portion of the screen 我可以在 iPhone 上永久保存和使用我的 flutter 应用程序吗? - Can I save and use my flutter app permanently on the iPhone? 如何在 Iphone 上使用我的 React Native 应用程序? - How I can use my React Native app on Iphone? iPhone可达性-如何在整个应用程序中使用它? - iPhone Reachability - How can I use it across my entire app? 如何在我的 iPhone 应用程序中使用 NSError? - How can I use NSError in my iPhone App? 我可以在我的iPhone应用程序中使用动态库(共享对象)吗? - can I use dynamic library(shared object) in my iphone app? 我可以在iPhone应用程序上使用Facebook auth服务器端流程并仍然有客户端交互吗? - Can I use Facebook auth server side flow on an iPhone app and still have client side interactions? 我如何在iPhone应用程序中同时支持iOS 4.X SDK和iOS 5 SDK? - How can I support both iOS 4.X SDK and iOS 5 SDK in my iPhone app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM