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
0 answers

Get correct splash image programmatically from Images.xcassets?

I want to show splash screen image as background of the app too. But the problem is i using Images.xcassets for LaunchImage. Now when i give name of the launch image in given below code it return me image for retina device(@2x) but not for iphone 6,…
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83
0
votes
1 answer

Function that returns an array of the string filenames of a directory in xcassets

I have been going through many Swift and Objective-C posts over several hours to help me create a function that returns an array of the string filenames of a directory in xcassets. I then can use the array of filenames to create another function…
0
votes
1 answer

How to load all images with similar names

I have several images in my xcasset, so i can load image with: [UIImage imageNamed:@"face_icon_1"]; If my images names is like "face_icon_2", "face_icon_3" and etc., how do i found them all and without hardcode?
Zaporozhchenko Oleksandr
  • 4,660
  • 3
  • 26
  • 48
0
votes
1 answer

Image.xcassets rendering strangely on simulator

I designed an image on Adobe Illustrator that has H: 100 px and W: 2000 px. When the device is in landscape left, this asset should run across the bottom the of screen and completely cover it from end to end. As far as I know, the iPhone 6+ is 1080…
TerranceW
  • 302
  • 2
  • 12
0
votes
1 answer

Xcode -using two xcassets how would i override

Let me explain the architecture i'd like to build in xCode. here is a photo of xcassets i have created in the project structure: From the image you can see that i have created two xcassets folders. The first one called images.xcassets hosts all…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
1 answer

ipa file increased to double because of assets.car

the ipa file was 38 MB and suddenly its 90 MB I checked the package and found that assets.car increased to double; however I didn't add any new images to assets. N.B. i'm using pods and xcode 6.3.1 Anyone can help?
AzabAF
  • 632
  • 1
  • 4
  • 19
0
votes
2 answers

Use of xcassets versus design team

Design team provide a folder with all the images required for a project. I've create xcassets for the icon and splash files, and for some images who require slicing, etc I've notices that all the image in xcassets have been duplicate in the…
Franck
  • 8,939
  • 8
  • 39
  • 57
0
votes
1 answer

Device specific Graphics for Universal iOS app

I've configured my app as Universal in Target/General/DeploymentInfo Is it ok to make device specific assets in the xcassets file for iPhone and iPad, even though the app as a whole is Universal? It seems to work, but I'm worried if there is some…
Fredrik Johansson
  • 1,301
  • 1
  • 13
  • 26
0
votes
0 answers

How to understand what xcassets size should I use?

I'm trying to make a simple game in swift. But I don't know, what size should I make for my pics. Apple explains sizes of launch screen, icon and such. But, what to do with my background, hero or enemies? Also, should I draw @3x first and then…
Burundanga
  • 668
  • 5
  • 15
0
votes
1 answer

Does iOS mask every App Icon or just the ones on the home screen?

According to this, Apple Documentation on App Icons, "When iOS displays an app icon on the Home screen of a device, it automatically applies a mask that rounds the corners. Make sure your icon has 90° corners so it looks good after the mask is…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
2 answers

Issues with image assets and iOS phones

I want to have a 60x60 UIImageView that displays my logo on the login screen. In my image assets, I have the 60x60 .png in 1x and 120x120 .png in 2x. However, whenever I display these images something just seems a tad off. There seems to be the…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
1 answer

Image.xcassets specify image for iPhone 6

I have tested iPhone 6 and seems when I have set 1x 2x Retina4 2x and 3x images the iPhone 6 uses 2x image that is 640 x 960 px image. How can I set image for iPhone 6 which needs 750×1334 px?
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
0
votes
2 answers

SpriteKit correct asset size

Summary I'm creating an SpriteKit game for different devices and I'm wondering what should be the size of the different assets. What I have right now I'm creating the SKScene in viewDidLoad: scene = GameScene(size: view.bounds.size) scene.scaleMode…
Octan
  • 348
  • 4
  • 19
0
votes
1 answer

Making old Xcode project iPhone 6/6+ compatible

I have an old project that shows is Xcode 3.2 compatible. I have manually created entries for app icon files in the info.plist. I try adding images.xcassets using File->New->File->iOS->User Interface but there is no option to add asset catalog. If I…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
0
votes
1 answer

Images.xcassets Xcode 5.0.2: Image truncated

My app is totally ready for App Store except one issue: When testing the app on iPhone4 the image and also the launch-image are truncated at the bottom. In the Images.xcassets folder, I have this example of a image in a image view: The box named 1x…
1 2 3
15
16