Since the induction of 6 and 6 plus its the first time I'm starting to work on a new app. Now I'm a bit confused about the use of graphical assets for my app. See for 5/5S things were pretty simple. If I have to make an image view of lets say 180 x 30 points then my image would of 2x resolution that would be 360 x 60 and would fit pretty good inside my image view. Now since 6 and 6 plus have different screen sizes than 5/5S and different resolutions, what is the recommendation here. Should I keep the image view size same on all three devices that is 180 x 30 points. If so, what image resolutions should I be using for the 3 different devices. It would be 2x for 5/5S but what about 6 and 6 Plus and how will Xcode determine to load those automatically? Or should I use different image view size that is larger than 180 x 30 for 6 and 6 plus? Im confused here that how this all works. Help is highly appreciated. Thanks
Dealing with graphical assets for iPhone 5/5S/6/6 Plus
598 views Asked by Asad Javed At
2
There are 2 answers
0
Killectro
On
You should keep your image view point sizes the same but you should add a new pixel resolution for all of your images (3x) which will be used for the 6+. Although the 6+ is slightly less than exactly 3x resolution, the OS does some scaling so that you can just give a 3x image and it will work correctly.
A couple of Xcode versions ago Apple added asset catalogs that make it incredibly easy to manage having multiple resolutions. Just simply drag the correct images into their correct resolution bucket and it will work automagically. Much simpler than having to append @2x and @3x to all of your images like in older versions.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in XCODE6
- How behave alternate icons feature regarding app updates?
- incorrect architecture in 3u tools from clickteam project
- How to setup and use Apache arrow from within Xcode C++ project
- Xamarin.ios not running in visual studio on mac
- Could not build the application for the simulator. Error launching application on iPhone 11 Pro
- Sum up values in multidimensional array in c++ and store it in another multidimensional array
- Trying to add two images in a UI image
- Xcode set up with Appium
- Network Extension capability missing in dev portal
- Cannot find 'SwiftUIWebView' in scope
- Swift UI: App looks different in simulator than on same iPhone model
- Xcode 6.2 fails to download docsets, complains they're "untrusted"
- I've just ejected expo react native app. How do I run the app via xcode?
- Add photo to a section in UITableview
- Variable unexpectedly resetting to 0 when View Controller Switched
Related Questions in IPHONE-6
- How can I get the default create-react-app to work on older iPhones?
- xcode not recognizing screen size height 677
- Xcode 11 doesn't add iPhone6s Simulator
- How to Convert Application.app from iOS only compatible to macOS compatible?
- Embedded vimeo video blank when returning to web page on iPhone 6s
- Possible to programmatically tap textfields and paste username/passwords? Login not saved in Keychain
- How to distribute enterprise iOS App to specific iPhone device types
- How does Yubo previously known as Yello remember users after reinstall?
- Change View in Multitasking Switcher not working on iPhone6
- Layout View for iPhone6 Plus in Storyboard
- Form input change to white background - iphone 6
- Reading NFC Tags with iPhone 6 / iOS 11
- UIRefreshControl not calling refresh function only for iPhone 6
- CSS on iPhone 6 - Why don't DIVs line up?
- angular 2 custom dropdown directive not showing on iphone 6
Related Questions in IPHONE-6-PLUS
- iPhone Plus: why is UISplitViewController showing both controllers in landscape?
- How to increase fonts and sizes on plus device in Swift?
- iOS11, Xcode 9, iPhone6 Plus, UIDeviceDidChangeOrientation notification not called,UIDevice.current.orientation only returns portrait
- Gradient drawn into a clipped context does not appear on simulators for iPhone 6 plus, 6s plus and 7 plus ONLY
- UISplitViewController with nav stacks in both master and detail - how to remove a VC from one of the stacks?
- ARKit Demo Crashing on iPhone 6/iPhone 6 Plus
- Size Classes & Plus Phone
- open gl memory issue during filr reading
- iPhone plus and iPad UIBarMetrics (different landscape/portrait images for navigation bar)
- How to determine in iphone6+ device display mode is Zoomed or Standard
- UIButtons in UITableviewCell goes out of bonds in Zoomed mode display of iPhone 6+
- Weird iphone 6 plus screen size on simulator (vs launch screen image)
- Cannot set bartintcolor on iPhone 6 plus
- Crashed: XPC API Misuse: Over-resume of a connection
- iPhone 6 Plus position fixed paint bug
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
So your image view size should always be the same amount of points on the phone. Your image will be in the assets and will be different based on the device.
So if on the non retina screen you had 180x30 and on the 5s retina you used 360x60, you would keep the same 2x(360x60) for the 6 and then 3x for the 6+(540x90)
Just add the images to your assets in the correct buckets and it should be taken care of for you.