FAQ Database Discussion Community


Can't retrieve non jpg/png files from the Asset Catalog in Xcode 7

ios,xcode,asset-catalog,xcode7
I want retrieve non jpg/png files from the Asset Catalog in Xcode 7. I saw it was possible now to add any kind of data into to Asset Catalog. So the way I was doing it was working before moving gif/video from Xcode project into the Assets Catalog private struct...

Asset catalog slicing using aspect fit

ios,xcode,xib,asset-catalog
I'm using slicing in the asset catalog to make my image stretch vertically, which seems to work fine if I have the view mode set to Scale to Fill But when I change the mode to Aspect Fit, it only shows the caps of the slicing like this I want...

Getting video from Asset Catalog using On Demand ressources

ios,xcode,xcode7,ios9,asset-catalog
I attributed to my .mp4 video the "tokyo" tag for example, and set it as installed during the app installation. Now before I was using a Path to get it from my resources, now it's different because it's located on the Asset Catalog. After found documentations, I tried something like...