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
2
votes
2 answers

Artifacts on iOS 8 simulator when using xcassets

I'm facing a strange issue, after adding all my images to a xcasset, my app looks malformed (see screenshot) when running it on iOS 8 simulator. Each image is full of artifacts. Before, all my images were simply added to main bundle, and everything…
iOS Dev
  • 4,143
  • 5
  • 30
  • 58
2
votes
0 answers

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon20x20'"

So I get the issue when uploading from Xcode 9: ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon20x20'" I don't have the CFBundleIcons in my info.plist, and CarPlay is not selected in…
user717452
  • 33
  • 14
  • 73
  • 149
2
votes
1 answer

UIImageView doesn't show up in LaunchScreen.xib

I have an image set in my asset catalog and I have it set for my UIImageView in my launch screen xib. I know the launch screen shows up because it has a label that is showing when I launch the app on my device. I can see the Image and the label in…
user3832583
  • 371
  • 4
  • 19
2
votes
0 answers

Images living inside an imported pod .xcasset are selectable (and viewable) inside Interface Builder storyboard, but won't show in the simulator

I'm in the middle of some "Proof of Concept" project regarding Cocoapods, .xcassets, Swift 3, "cross-project loading images" (from pod bundles onto the main storyboard), etc... My main problem right now is "images living inside an imported .xcasset…
Isaac
  • 1,794
  • 4
  • 21
  • 41
2
votes
0 answers

Asset catalog in blue folder reference?

Can I have a number of automatically generated asset catalogs in a "blue" folder? If so, how do I access them? Edit: By blue folder, I mean a folder ref instead of the yellow group. This folder than expects number of xcassets folders that may change…
Ondrej Rafaj
  • 4,342
  • 8
  • 42
  • 65
2
votes
1 answer

Getting nil resource URL when trying to read data file from XCAssets

I am trying to read a video file saved as a data file in the XCAssets folder of my project. I am using the following code for this - NSString *videoFilePath = [[NSBundle mainBundle] pathForResource:@"login_video" ofType:@"mp4"]; NSURL *fileURL =…
Shivam Bhalla
  • 1,879
  • 5
  • 35
  • 63
2
votes
1 answer

Get number of images in xcasset

I want to programmatically load a couple of images into arrays from my xcassets. I don't know how many images there are in the asset, but the images are named in order, like this: "img1_1", "img1_2", "img2_1", "img2_2", ... I put the images in…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
2
votes
1 answer

iOS 9 Launch Image sizes?

I'm confused about Launch Images. I have to fill out the Launch Images in the xcassets file and I see this: But I can't find any documentation which lists the sizes needed for any of these images. Apples documentation only specifies 5 different…
Cbas
  • 6,003
  • 11
  • 56
  • 87
2
votes
4 answers

tvOS icon not showing

I have created a tvOS app and I have added images for the Top Shelf, both icons, and the Launch Image. When I compile and run the app in the Simulator those images don't show up. It's like the OS can't find the images and I don't understand why. The…
2
votes
1 answer

tvOS; Launch Image doesn't appear on launch

I'm developing an tvOS app, and I'm trying to set the LaunchImage. I've added a .pgn-file with size 1920 × 1080 called LaunchImage.pgn to Assets.xcassets, by dragging the file from finder to the LaunchImage image-socket in xcode. But the Launch…
Wiingaard
  • 4,150
  • 4
  • 35
  • 67
2
votes
2 answers

APP icons in iOS application | Artwork image

I'm working on iOS application (iPhone, iPad) and little confused about the app icon stuff. I'm using XCAssets and my app supports version>=8.3. So,the image below shows what I've selected from XCAssets and I've placed all these images. I've looked…
Fayza Nawaz
  • 2,256
  • 3
  • 26
  • 61
2
votes
4 answers

How to change bar button image color?

I want to set image in bar button item like below. I added this image to Assets.xcassets and when i tried to set image, it changes color automatically. how can I set image as it is in bar button item?
Divyesh
  • 19
  • 7
2
votes
1 answer

Xcode - iPhone 6 Plus keeps getting recognised as @2x

I'm creating a game with SpriteKit and I have created assets for both iPhone 6 & iPhone 6 Plus sizes, but the problem is when I test in the simulator the iPhone 6 picks up whatever is in the @2x slot in the xcassets folder. So now I'm not sure if…
Abdou023
  • 1,654
  • 2
  • 24
  • 45
2
votes
1 answer

How to localize images in xcassets folder in Xcode

I have two targets in XCode. These are two products based on the same code base but some graphics are different. It's like white labeling. The images are stored in an xcassets folder. How do I localize this? Either localizing for a language or…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
2
votes
2 answers

Image Assets: Could not load the image referenced from a nib in the bundle with identifier

I have a compass.jpg file that exists in Download folder. Then I dragged this image to my Images.xcassets. I made sure that the image is indeed within the folder by right click the image entry and view folder. Then, in storyboard, I set my logo…
donkey
  • 4,285
  • 7
  • 42
  • 68