![]() Now you can see an empty image set has been added, click the image set, it will display the image set images overview in the right panel.Then click Editor -> Add Assets -> New Image Set menu item at Xcode top menu bar to create an image set in the asset catalog.Click the asset catalog file ( Assets.xcassets ) in the Xcode project file list.Below are the steps about how to create an image set in the Xcode asset catalog file. So you can create an image set in the Xcode asset catalog to achieve this goal. Image set defines a set of different sized images which are displayed for different screen resolutions.So if you want to display the same image for different iOS devices, you should provide different sized images for different screen resolutions.As you know, different iOS devices have different screen resolutions, you can see the apple document Human Interface Guidelines – Image Size and Resolution to learn more.2.1 How To Create Image Set In Xcode Asset Catalog. If you want to learn how to create an app icon set, please read the article How To Set iOS App Icon In Xcode Project. This article will create an image set, color set as an example.After creating an asset catalog file in Xcode, you can create multiple resource files set in that asset catalog.How To Create Resource Files Set In Xcode Asset Catalog. After that, you can see the new asset catalog file (the default file name is Media.xcassets ) in the Xcode project left side source file list.Click the Next button, input the asset catalog file name ( the default name is Media ) in the next window.Then scroll down to the Resource section and click the Asset Catalog icon.Click the iOS tab on the above dialog top area. ![]() ![]() Click File -> New -> File… menu item in Xcode project to open the Choose a template for your new file: dialog window.How To Create New Asset Catalog In Xcode.īesides the default asset catalog, you can also add the asset catalog follow the below steps.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |