Friday, 15 August 2014

ios - Filename suffix iPad images to Asset Catalog -



ios - Filename suffix iPad images to Asset Catalog -

xcode asset catalogs have convenient feature in dragging files named this:

image.png image@2x.png image@3x.png

will create single image set named image each image placed in right slot.

is there suffix works ipad images? i'm looking efficient way add together ipad images asset catalog in same image set iphone brethren.

~ipad , ~iphone after base of operations name seems work on xib files.

yes, since ios4 can utilize ~ipad , ~iphone in next format:

<basename><device>.<filename_extension>

from the documentation:

the string represents original name of resource file. represents name utilize when accessing file code. similarly, string standard filename extension used identify type of file. string case-sensitive string can 1 of next values:

~ipad - resource should loaded on ipad devices only.

~iphone - resource should loaded on iphone or ipod touch devices only.

ios xcode ipad asset-catalog

No comments:

Post a Comment