Questions tagged [xcasset]

An image asset catalog is an asset management file type and editor in Xcode 5.

Xcode 5 asset catalogs manage images and icons in multiple resolutions. An asset catalog is a new asset management file type and editor in Xcode 5.

You use asset catalogs to store and manage images for different platforms, devices, and scale factors. The catalog presents the image variants required, and provides you with the ability to define slice and stretch points for images that are resized at runtime.

For more information on Xcode Asset Catalogs, refer here.

235 questions
0
votes
1 answer

iOS - Assets Dimensions

I know this type of questions has been asked many times but am still unable to understand is there a standard way of deciding dimensions. Let's say I have a design of a screen in png. Now how do I decide the size of the image view and dimension(1x…
Divyansh Singh
  • 390
  • 4
  • 16
0
votes
1 answer

iOS- Image resource for iPhone 6 and 6 plus

I am developing portrait resolution app which will support all iPhone screens. I am not scaling so i have to cater every Screen size. iPhone 6 plus have 1242 x 2208 (@3x) for portrait and iPhone 6 have 750 x 1334 (@2x) for portrait. Normally i…
Hassy
  • 5,068
  • 5
  • 38
  • 63
0
votes
2 answers

Load image from xcassets without knowing the name

I have multiple images in my asset catalog as shown below. Is there a convenient method to load the images without using a hardcoded string every time: var images = [UIImage]() images.append(UIImage(named:…
ammerzon
  • 998
  • 1
  • 13
  • 30
0
votes
2 answers

All images in xcassets, then how load the image referenced from a nib in my bundle

In my iOS project, I creat a xcasset named:PaoPaoImages.xcassets then I put all images into PaoPaoImages.xcassets. And I have a xib file named:a.xib, I compile it into a.nib. Then I put a.nib into a bundle named:paopao.bundle. So, now, my images…
PanLin
  • 43
  • 1
  • 7
0
votes
0 answers

What's really happens when I create a "New Sprite Image" inside my Xcode images.xcassets?

Days ago I asked for How check the .spriteatlas sizes generated by Xcode? but I got no answer so I decided to slightly change my question: What happens when I choose this option here inside the images.xcassets section? Does Xcode provide a full…
user3582537
  • 414
  • 6
  • 20
0
votes
2 answers

Xcode AppIcon 'x' and 'L' symbols

just wondering what do these symbols mean in .xcassets?
Nika Kasradze
  • 2,834
  • 3
  • 25
  • 48
0
votes
1 answer

How to manage subtype tag for asset in Xcode 7?

Xcode 7 allow Image Set Type to use subtype tag — Asset Catalog Format Reference. Subtype tag have the following values: - Tag not included, the image is for a 3.5-inch iPhone screen. - retina4, the image is for a 4-inch iPhone screen. - 736h, the…
Dominique Vial
  • 3,729
  • 2
  • 25
  • 45
0
votes
2 answers

Navigation bar image for iphone 5 and 6

I'm trying to create an app for iphone 5, 6 and 6 plus. I've added a custom image for my navigation bar, but there is a problem. In images.xcassets there is two slots 2x and 3x. I already know that 2x is for iphone 5 and 6 and 3x is for 6 plus. If I…
0
votes
1 answer

XCode - Storeyboard scene background image from assets.xcassets

I have a storeyboard scene and an image set called LaunchImage in assets.xcassets My question is how do I use this LaunchImage in my storeyboard scene so it the background image of this scene?
user979331
  • 11,039
  • 73
  • 223
  • 418
0
votes
0 answers

Can I have 2 Launch Images on xcasset?

I have a Images.xcasset with 2 diferent Launch Images: LaunchImage and LaunchImage2. In the Launch Images Source I choose Launch Images. Then, in AppDelegate inside didFinishLaunchingWithOptions i have the folowing code: splashView= [[UIImageView…
Kepa Santos
  • 557
  • 7
  • 21
0
votes
1 answer

Should I use xcassets or just change the size of one image to develop on multiple devices in iOS?

I want to show a placeholder image on my UICollectionView until the cell fetches an image from my server. However, I wonder whether I should prepare three different images in advance for the case 1x, 2x, and 3x in Images.xcassests, or just prepare…
Blaszard
  • 30,954
  • 51
  • 153
  • 233
0
votes
2 answers

If I just include images 3 times as large for iOS, will it auto-resize?

I know if I just include image@3x.png in my Images.xcassets, that it'll be shrunk accordingly whenever I need it for 1x and 2x situations. My users will all have profile pictures. I don't store them on the phone. Is it enough to store one of 3x size…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
1 answer

iOS: Load Images.xcassets when Build in first time because I have a many image

I need to load Images.xcassets when Build in first time like a game on mobile(large file) please help me or recommend best way .
0
votes
2 answers

Images.xcassets in Xcode 6

I am trying to figure out how to use the xcassets folder in Xcode 6 and I have to say Apple could have done a way better job. I'm a big fan of Xcode but their images storage per type of screen / phone is a nightmare. First, in my application I am…
gotye
  • 958
  • 2
  • 14
  • 33
0
votes
0 answers

Dynamic/non-standard resolutions for PDF in Xcode Asset Catalogs

I love using the new PDF vector images in Xcode 6 Asset Catalogs a.k.a xcassets. I know that on iOS, these PDF's are rendered down at build time to @1x, @2x etc. PNG's and then embedded into the runtime asset catalog. However I need at least two…
Glen Low
  • 4,379
  • 1
  • 30
  • 36