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
4
votes
3 answers

Missing Icons error when submitting my Apple Watch App

I get an error when trying to submit my Apple Watch app to iTunes Connect. However, I have added all Apple Watch icons to my xcassets file and have added it to my Apple Watch App Target. So I don't know what to do about this. Thanks!!
Mattias Farnemyhr
  • 4,148
  • 3
  • 28
  • 49
4
votes
2 answers

Which resolution of images to use for watch kit?

Images.xcassets in watchkit has options for 1x, 2x and 3x. But how do we know which one to use ? Both are retina, but have different screen sizes. Do we have to supply all three? What happens if you don't ? EDIT: I have tried putting the image in 1x…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
4
votes
0 answers

Link xcode images.xcassets within a local html page

I am using a local html file to load a content with images using UIWebview.I have added all the images in the Image.xcassests. How do we link images in Image.xcassests in the local html page to show up .menu { background: url("menu") no-repeat…
Nassif
  • 1,113
  • 2
  • 14
  • 34
4
votes
1 answer

Can I access all images in a .xcassets at once?

I have a big amount of images in a Images.xcassets and I need to load them all in a UITableView. But I don't wat to write each name for the [UIImage imageNamed:@"imageName"]. What i'm looking for is something like: NSArray *images = [MagicClass…
Andres
  • 11,439
  • 12
  • 48
  • 87
4
votes
1 answer

I accidentally deleted LaunchImage from Xcassets help? How to restore LaunchImage to xcassets

I was editing some files in Xcassets and accidentally deleted the LaunchImage fileset. How do I get it back!? I tried looking in the target, and the option to use xcassets as the image-containing folder is not there anymore.
Ethan Parker
  • 2,986
  • 1
  • 23
  • 29
4
votes
1 answer

Xcode Image Catalogs: Image not showing in Interface Builder

So, the artist sent me a Resources.xcassets folder that I simply dragged into the project. I then jumped to interface builder, added a new UIImageView, assigned an image name from the xcassets, and to my surprise, I couldn't see the images. It shows…
Mazyod
  • 22,319
  • 10
  • 92
  • 157
3
votes
0 answers

Xcode12: Colours defined in a xcassets file in a Swift Local Package does not show Dark Appearance when applying them via IB Storyboard

From the Swift tools version of 5.3 on and, we can bundle our resources within the Swift package. Following that, I included an xcassets catalog with my colors in a helper UI Local Package. When accessing them programmatically from my main target…
toupper
  • 626
  • 7
  • 18
3
votes
2 answers

What's wrong with my asset catalog containing launch images?

I'm not using storyboards here, for reasons that would be a distraction to get into. I'm instead trying to add four launch images to an asset catalog: My app doesn't support iPads or 3.5-inch iPhones, so these should be sufficient. Is that fine or…
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55
3
votes
2 answers

Store iOS app audio files app in xcassets or documents directory?

If an app requires hundreds of audio files (they're small, 5-25KB), is it better to put them in an asset catalog or the documents directory? I've tried both approaches and they don't seem much different, it's a pain to manage hundreds of files in…
Steve
  • 5,802
  • 12
  • 54
  • 76
3
votes
0 answers

What size should I have my navigationItem.titleView set to?

I've been trying to put an image in my titleView in the navigation bar. The image keeps coming out way too blurry and I can't seem to understand why for the life of me. Right now my images are 28x14 for the @1x, 56x28 for the @2x, 84x42 @3x and the…
Mihado
  • 1,487
  • 3
  • 17
  • 30
3
votes
1 answer

Adding image to assets via script

I would like to add a bulk of images the .xcassets of iOS project via an external script at compile time (or manually at some other time but NOT ON RUNTIME - just to prevent misunderstanding) So far I have been doing that via dragging and dropping…
MarkHim
  • 5,686
  • 5
  • 32
  • 64
3
votes
1 answer

AppCode 3.2 doesn't see .xcasset nested folders

I've just started using AppCode and noticed that it doesn't see images in nested folders inside .xcasset. Is there any way to fix it? In example below there is no image ImageInSomeFolder (and SomeFolder) in AppCode. Neither ImageInSomeFolder is…
Fyodor Volchyok
  • 5,610
  • 4
  • 28
  • 45
3
votes
4 answers

Error asset catalog compiler error

I finished an app and after i finished uploading the app Icon images It doesn't run and i had this error:
Naiem Salib
  • 121
  • 1
  • 11
3
votes
0 answers

Folder inside XCassets used by SKS file

I am very fresh to iOS app development and currently working on Sprite Kit. I am observing some strange behavior when images are added into images.xcassets. I am creating a folder inside xcassets as shown in figure for better organisation of…
iOSFresher
  • 31
  • 2
3
votes
1 answer

Images.xcassets breaking the laws of targets

Ok so i'm pulling my teeth out over this one and I sincerely hope i've made a stupid mistake (there have been some late nights involved). Short back story, we are building a product that needs to be brand-able as multiple customers will share 90%…
Simon McLoughlin
  • 8,293
  • 5
  • 32
  • 56