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
1
vote
1 answer

Text size is changed when add launch images by xcasset

After add launch image follows this then run on iOS 8 and iOS9. Text size when run app on iOS8 and iOS9 is different. Text size when run on iOS9 seem small than text size on run on iOS8. Any body have ever meet this bug, please give me the solution?…
TrungLuu
  • 27
  • 5
1
vote
1 answer

Images.xcassets: How to use one image for all resolutions

I'm trying to use a PDF scalar vector image instead of having 1x,2x,3x image sizes. However, when I drag my PDF image it create three slots when I only want one "All". Looks like this: But it should look like this: How to configure the image so…
etayluz
  • 15,920
  • 23
  • 106
  • 151
1
vote
1 answer

iOS - One Vector Image for All iPhone Resolutions

I am trying to create one vector image for all screen sizes of iPhones. I created pdf file using Illustrator with size for iPhone 6 plus i.e. 1242*231 (231 is my required height of image) and Included it in image assets and changed scaling factor to…
Hassy
  • 5,068
  • 5
  • 38
  • 63
1
vote
0 answers

Xcode 6.4 can't create UIImage instance from .xcassets

After update OS X to El Capitain Xcode can't create build correctly. After start app crashes when try create UIImage instance UIImage(named: "icon_back"); and get an error in console [CUIThemeRendition newImageFromCSIDataSlice:ofBitmap:…
Slavik Voloshyn
  • 647
  • 10
  • 20
1
vote
0 answers

1x image comes for ipad rather than 3x in Universal Application

I have set images in Xcassets for a universal app for 1x,2x & 3x. its dimensions comes as 44*44 , 88 *88, 132*132. Some images comes correct for iPad but some comes as small ???? iPhone pics comes fine in all !! Does any one has any suggestion ??
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
1
vote
0 answers

Specify iPhone 6 to use @1x image in Xcode

I've created an imageset in Assets.xcassets named Wallpaper. Since the app I'm working on will only work on iOS 7 or greater it would be useless to embed non-retina images (The iPhone 4, which has retina, is the oldest device to support iOS 7). This…
Berendschot
  • 3,026
  • 1
  • 21
  • 43
1
vote
0 answers

SpriteNode not rendered at first time when using atlases - works with xcassets

I have a very strange behaviour when rendering SKSpriteNodes using an atlas via imageNamed. sprite = SKSpriteNode(imageNamed: triangle.triangleType1.spriteName) sprite.size.height = TileHeight sprite.size.width = TileWidth sprite.zRotation =…
1
vote
0 answers

Launch image and image xcassets

I am developing a small application and I am having problems with the images. I have defined a xcassets with images for each device called LaunchImage. It works ok. The problem comes next, I want to keep that image 2 seconds regardless of what it…
Kepa Santos
  • 557
  • 7
  • 21
1
vote
1 answer

I just deleted my Images.xcassets folder from my Xcode project

I added a image template or something like that to my Images.xcassets folder. I didn't want it so I tried to delete it and ended up deleting the whole file with the all references by accident. How do I fix it? I tried to do what was suggested in…
Caleb Kleveter
  • 11,170
  • 8
  • 62
  • 92
1
vote
1 answer

Asset catalog with PDF Vector Image does not export @3x resolution for iOS

I am trying to use PDF Image in my Asset Catalogs files to automatically generate png files. This feature as been presented in WWDC 2014, video 411 (What's new in Interface Builder) On iOS XCode is supposed to render the PDF to @1x, @2x, @3x PNG at…
Nicolas Braun
  • 746
  • 4
  • 16
1
vote
0 answers

How to supply menu images for both 38mm and 42mm on WatchOS?

I have downloaded templates from Apple's site for preparing icons for Menu Items on WatchOS apps. I see that there are 2 different templates, for 38mm and 42mm versions. I didn't understand how I should save them to support both sizes…
frankish
  • 6,738
  • 9
  • 49
  • 100
1
vote
1 answer

Understanding iPhone 5/6 resolution on image.xcassets

As the title says, I'm still confused to understand how image.xcassets handles the iPhone 5/6 images. Let me explain better: This is my MENU_EMPTY_LIST file in image.xcassets. I've been looking for an answer here in stackoverflow and I found…
user3582537
  • 414
  • 6
  • 20
1
vote
2 answers

Some explanations for iOS xcasset catalogs required

I am completely new to iOS development. I want to make a small game with the Sprite-Kit framework and I am already stuck at the xcasset catalog. Say I have a 320x320 pixel image for my iPhone 4s that features a resolution of 960x480 pixels. I put…
salocinx
  • 3,715
  • 8
  • 61
  • 110
1
vote
1 answer

Xcode 6 - universal image support

I am wondering which image sizes are needed with new XCode 6 and iPhone 6 and iPhone 6 plus support. So if I am now having a fullwidth image, which is 640 x 80 pixel for an iphone 4s/5 series. So with "@2x". For iPhone 6 plus I need the "@3x" as…
davidOhara
  • 1,008
  • 5
  • 17
  • 39
1
vote
0 answers

Xcode asset catalog compiled size

I have noticed weird behavior with compiled xcassets. It looks like images in .car file are larger then default images. Here is image catalog i have used for testing https://www.dropbox.com/s/h544p42qfwjwm4y/Images.xcassets.zip?dl=0 This is somehow…
josip04
  • 224
  • 3
  • 13