![]() ![]() For details about how the images are used, you can further refer to this link ( ). The one with suffix is for iPhone SE, iPhone 8, and iPhone 13/14, while the one without the suffix is for older devices with non-Retina display (e.g. The one with suffix, which has the highest resolution, is for iPhone 8 Plus, iPhone 13/14 Pro and Pro Max. In this example, the image files comes with three versions. This is why Apple recommends developers to provide three different resolutions of images when PNG is used. Increasing the size of a raster image usually means a significant loss of quality. One problem of raster images is that it doesn't scale up well. Raster images use a grid of pixels to form a complete image. Common image formats like PNG and JPEG are classified as raster images. IOS supports two categories of images: raster images and vector images. The zipped archive contains a total of 5 image files:Ĭredit: The images are provided by. Now download this image set ( ) and unzip it on your Mac. We are not going to talk about app icons and accent colors in this chapter, but will revisit it later in the book. By default, it only contains the blank Appicon and AccentColor sets. Go to the project navigator and select the Assets folder. Assets) for managing images and icons that are used by your app. In each Xcode project, it includes an asset catalog (i.e. The question is how can you bundle images in Xcode projects? ![]() Adding Images to the Xcode ProjectĪs you may notice, the sample app has three images. Xcode then asks you where to save the StackViewDemo project. You do not need any tests for this simple project.Ĭlick "Next" to continue.
0 Comments
Leave a Reply. |