I just want to use one set of image asserts for all iPhones and iPads(Universal), Is it possible to do the same? or what will be the best solution for the making a build lighter.
Can we use just one set of image assert for all resolutions in iOS Development
440 Views Asked by Haroon At
2
There are 2 best solutions below
1
Fonix
On
Yes, if you use a retina image without the @2x or @3x in the name and your UIImageView is set to ScaleToFill it will automatically scale down your image on non-retina devices. it is easy to test with the simulators to see how the image will look at the different screen resolutions.
the trade off is non retina devices will suffer with more memory usage than is needed for them (and usually the non-retina devices are some what limited in memory already compared to the latest apple products) but if you arent dealing with a lot of images on the screen at once then this shouldnt have an adverse effect
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 OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in XCODE6.1
- FFMPEG binaries throw error : Undefined Symbols for Architecture x86_64
- Cocoa: Remove Database on uninstallation from OS X
- Images in a CustomTableCell gets resized upon click
- How to remove the left padding of a cell content?
- I'm using swift and I'm getting a error - Expected ',' separator in an if & else statement
- Cannot invoke 'reduce' with an argument list of type ''
- Core data:- How to update values in the array (Transformable)
- Swiftsupport folder adding extra size to binary
- Apple Mach-O Librarian Error on Mac
- how to change contentSize,height,setContentOffset of the UIScrollView with iOS 8 Size Classes and Autolayout
- Autolayout constraint issue when device orientation gets changed
- Slide Out Menu with Status Bar
- Adding multiple images in a story Core Data iOS 8
- Save UITableViewCell configuration
- How to resize collection View cells ( likely PInterest app )
Related Questions in IOS8.1
- NSURLSession request fails when call from iOS 8.3 It work perfectly in iOS 12
- Xcode9.2 build version showing image twisted in ios8.1
- In Swift 3, Application filed to register notification for ios 8.1
- iOS 8 simulator not working with Xcode 8
- What is the best way to make download speed test app using swift3?
- Auto Layout broken on iOS 8.1
- Xcode 8 Storyboard frame sizes issue
- invalid redeclaration in auto code generate NSManagedObject Subclass Swift 3
- NSRegularExpression regularExpressionWithPattern is not working in ios 8
- UISearchController result tableView not fit with window IOS 8.1
- iOS 8.1 image display
- Animation looking odd on iOS 8 local environment
- React Native iOS 8.1 app crashes when accessing a new view - ONLY when NOT using debugger
- Creating shortcut for the app crashes on previous version
- Core Data Migration issue in IOS 8 only , not IOS 9
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)
Popular # Hahtags
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?
YES, it is possible ti use one image asserts for all devices. just add
new image setin assert by Right click. And the add images for required devices in created
Image set.you can use Image set but it's name,and images are automatically loaded with different devices.
UPDATED
if you want to
titlelogo.pngfor all device then makenew image setin Images.xcassets and name it asAssetTitlelogo. and the add all images in it as in screenshot.You use image by
It's load right image for right Device..