Xcode 7 Retina 4" Assets

Xcode 7 retina 4 assets?

Edit Contents.json of the Image Set and add

{
"idiom" : "iphone",
"subtype" : "retina4",
"scale" : "2x"
}

You will see appear Retina 4 2x entry.

No Retina 4 option in xcode 7 then how do I set fullscreen images in asset to make them show correctly in 4s/5s & iPhone 6?

I raised a ticket to apple technical support and they confirmed that currently there is no way to do that. I have to write some code for it. "Currently, there is no way for the Asset Catalog to load device specific images. If your app needs to support device specific images you will need to implement your own code to detect the screen size and choose the appropriate image. You can file an enhancement request by using the following link. Be sure to explain your use case for this feature. "

Set accurately Assets in Xcode 7 for all iPhone devices

You will get all the information regarding Asset from top to bottom on this link.

About Asset Catalogs

According to your Question you can find information in proper detail on this link iosdesign-guidelines

Developers work with point values, so it is important to understand
the difference with pixels. When the iPhone was first introduced, the
two units were the same: 1pt equals 1px. Then when retina screens came
along, 1pt became 2px. So think of points as the values in the
original iPhone, and pixels as the real values depending on the pixel
density (iPhone 4,5,6 = @2x, iPhone 6 Plus = @3x).

Check here for resolution ultimate-guide-to-iphone-resolutions

Sample Image
Sample Image

How to manage subtype tag for asset in Xcode 7?

I filled a bug report to Apple and this is the answer;

This issue behaves as intended based on the following:

There is currently no publicly supported values subtype in the CAR
file. Previously, this was used for R4, but that was retired when we
stopped supporting the old 3.5” displays. Additional subtypes for the
new 6 and 6s display were never defined.

We are now closing this bug report.

Devices in Device Specific image set in asset catalog

  • 1x: no need
  • 2x: 3.5', 4' and 4.7' — see below for 4'
  • 3x: 5.5'
  • Retina 4 2x: 4' if image ratio is different from 3.5', i.e. image have the same width but different height


Related Topics



Leave a reply



Submit