xcasset

Accidentally removed xcassets file from Xcode project

佐手、 提交于 2019-11-27 18:39:09
I wanted to remove a single folder from the image collection, however, I somehow managed to throw the entire xcassets file into the trash. The normal 'Put back' method is not available, and simply dragging the deleted folder to Xcode yields an error: "Images.xcassets" couldn't be copied to "ProjectPear" because an item with the same name already exists. To save the file, either provide a different name, or move aside or delete the existing file, and try again. I'm not sure where this collection is located within my Xcode project, as the navigator doesn't appear to show anything, and the

Can I access an xcassets directory on the filesystem?

北城余情 提交于 2019-11-27 14:30:50
I would like to dynamically load all images in an xcassets directory. The files are named StockPhoto# where # is the number in the list. If I can access my StockPhotos.xcassets at runtime to count all the files in the directory, I won't have to manually load the files each time I add new stock photos. If there are other solutions to this problem, I'm open to that but I'm also just very curious how xcassets are handled by the file system- whether they're just reference to a set of files, or actually their own directory. Information on this is sparse. If there are other solutions to this problem

Launch Image does not show up in my iOS App

一笑奈何 提交于 2019-11-27 10:02:37
I want to get a simple launch screen to show in my app, built using Xcode 6.0.1. I have added a launch screen in two ways: As an XIB (with the default name, LaunchScreen.xib) and as a launchimage set within xcassets. I have made sure that my "Launch Screen File" is set to LaunchScreen.xib. I have simulated every device available (e.g., "iPhone5 iOS8" / "iPhone5s iOS8" / "iPhone6 iOS8". Note that only iOS 8 is available within the simulator). Khaled Barazi So this has been quite painful for something that should be trivial. Here is what I did: Use xcassets I decided to use .xcassets versus the

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

冷暖自知 提交于 2019-11-27 08:08:36
问题 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 do I need landscape as well? Here are the properties of each of the images: Here's the same information in textual form: filename: LaunchImage.launchimage children: filename: 5.5.png idiom: iphone subtype: 736h scale: 3x orientation: portrait extent

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

心已入冬 提交于 2019-11-27 07:57:29
问题 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 loadAllImagesIn:@"images.xcassets"]; Do you know if this is even possible? If not maybe i'll create a .bundle... Thanks!! 回答1: Images.xcassets copies all the images in bundle, and it mixes up with other images, better follow the instructions in image

use xcassets without imageNamed to prevent memory problems?

丶灬走出姿态 提交于 2019-11-27 01:34:46
问题 according to the apple documentation it is recommended to use xcassets for iOS7 applications and reference those images over imageNamed. But as far as I'm aware, there were always problems with imageNamed and memory. So I made a short test application - referencing images out of the xcassets catalogue with imageNamed and started the profiler ... the result was as expected. Once allocated memory wasn't released again, even after I removed the ImageView from superview and set it to nil. I'm

Accidentally removed xcassets file from Xcode project

六月ゝ 毕业季﹏ 提交于 2019-11-26 19:32:27
问题 I wanted to remove a single folder from the image collection, however, I somehow managed to throw the entire xcassets file into the trash. The normal 'Put back' method is not available, and simply dragging the deleted folder to Xcode yields an error: "Images.xcassets" couldn't be copied to "ProjectPear" because an item with the same name already exists. To save the file, either provide a different name, or move aside or delete the existing file, and try again. I'm not sure where this

Can I access an xcassets directory on the filesystem?

雨燕双飞 提交于 2019-11-26 16:47:36
问题 I would like to dynamically load all images in an xcassets directory. The files are named StockPhoto# where # is the number in the list. If I can access my StockPhotos.xcassets at runtime to count all the files in the directory, I won't have to manually load the files each time I add new stock photos. If there are other solutions to this problem, I'm open to that but I'm also just very curious how xcassets are handled by the file system- whether they're just reference to a set of files, or

Launch Image does not show up in my iOS App

六月ゝ 毕业季﹏ 提交于 2019-11-26 14:59:32
问题 I want to get a simple launch screen to show in my app, built using Xcode 6.0.1. I have added a launch screen in two ways: As an XIB (with the default name, LaunchScreen.xib) and as a launchimage set within xcassets. I have made sure that my "Launch Screen File" is set to LaunchScreen.xib. I have simulated every device available (e.g., "iPhone5 iOS8" / "iPhone5s iOS8" / "iPhone6 iOS8". Note that only iOS 8 is available within the simulator). 回答1: So this has been quite painful for something