Questions tagged [alassetslibrary]

A cocoa-touch framework. An instance of ALAssetsLibrary represents the videos and photos that are under the control of the Photos application.

A cocoa-touch framework. An instance of ALAssetsLibrary represents the videos and photos that are under the control of the Photos application. The library includes those that are in the saved photos album, those coming from iTunes and those that were directly imported into the device. You use it to retrieve the list of all asset groups and to save images and videos into the Saved Photos album.

619 questions
95
votes
1 answer

Interpret XMP-Metadata in ALAssetRepresentation

When a user makes some changes (cropping, red-eye removal, ...) to photos in the built-in Photos.app on iOS, the changes are not applied to the fullResolutionImage returned by the corresponding ALAssetRepresentation. However, the changes are…
andreas
  • 935
  • 6
  • 7
40
votes
10 answers

NSURL from PHAsset

I'm converting our app over to use the Photos Framework of iOS8, the ALAsset framework is clearly a second class citizen under iOS8. I'm having a problem is that our architecture really wants an NSURL that represents the location of the media on…
Paul Cezanne
  • 8,560
  • 7
  • 55
  • 85
25
votes
5 answers

ALAssetsLibrary assetForURL: always returning nil for photos in "My Photo Stream" in iOS 8.1

This code worked fine in iOS 7 but in iOS 8.1 all assets located in the "My Photo Stream" album are nil from within the result block. (The failureBlock is not called.) Regular albums and shared albums work just fine. I tried the accepted answer…
taber
  • 3,096
  • 3
  • 43
  • 68
25
votes
6 answers

iOS 8 Photos framework. Access photo metadata

I'm looking at replacing ALAssetsLibrary with Photos framework in my app. I can retrieve photos, collections, and asset sources just fine (even write them back out), but don't see anywhere to access the metadata of the photos (the dictionaries such…
VaporwareWolf
  • 9,573
  • 8
  • 48
  • 78
25
votes
1 answer

Access Burst Mode photos in library

I’m trying to access photos in the iOS asset library that the user has taken using Burst Mode. I’m trying using ALAssetsLibrary and filtering photos: - (void)findBurstModePhotos { ALAssetsFilter *allPhotos = [ALAssetsFilter allPhotos]; …
Jeff Kelley
  • 18,594
  • 5
  • 67
  • 80
24
votes
5 answers

Wait for assetForURL blocks to be completed

I would like to wait this code to be executed before to continue but as these blocks are called assynchronously I don't know how to do??? NSURL *asseturl; NSMutableArray *tmpListAsset = [[NSMutableArray alloc] init]; ALAssetsLibrary *library =…
Mathieu
  • 1,165
  • 4
  • 18
  • 34
24
votes
5 answers

Save Photos to Custom Album in iPhones Photo Library

I'm trying to create a custom album in the Photo Library of an iPhone and then save photos that I've taken with the camera, or chosen from the phones Camera Roll to that custom album. I can successfully create the album but the photos are not…
23
votes
3 answers

How to Localize NSPhotoLibraryUsageDescription key (ALAssets)

I'm trying to localize the NSPhotoLibraryUsageDescription key defined in the application's info.plist file (reference here). This key gives you a point to provide custom message when the app is first asking for access to your camera roll. I'm using…
kr45ko
  • 485
  • 1
  • 3
  • 13
21
votes
5 answers

How to get an ALAsset URL from a PHAsset?

You can do it sneakily† using the undocumented PHAsset.ALAssetURL property, but I'm looking for something documented. † In Objective-C, this will help @interface PHAsset (Sneaky) @property (nonatomic, readonly) NSURL *ALAssetURL; @end
Clay Bridges
  • 10,746
  • 10
  • 62
  • 110
21
votes
6 answers

iOS stopped asking user for Photo Library Permission

iOS is not asking user for Photo Library Permission anymore. Even when I deleted the app from the device. This also happens on Simulator. switch ([ALAssetsLibrary authorizationStatus]) { case ALAuthorizationStatusAuthorized: …
Lucien
  • 7,795
  • 4
  • 27
  • 30
19
votes
6 answers

AssetsLibrary framework broken on iOS 8

I have run into an issue on iOS 8 with the Assets Library framework that appears to be a bug in iOS 8. If I create an album called 'MyMedia' and then delete it, then when I try to create the album again, this chunk of code below returns 'nil'…
Adam Freeman
  • 1,171
  • 9
  • 18
19
votes
2 answers

Unable to link ALAssetsLibrary

I am struggling with linking ALAssetsLibrary in my code. I have googled a lot on this and followed more than one tutorial to the last dot yet I am still where I began. Ld…
nirvana74v
  • 961
  • 2
  • 15
  • 22
18
votes
1 answer

ALAsset defaultRepresentation fullResolutionImage

I have an issue with new iOS 7 photo filters feature. I have a photolibrary in my app. While I showing photo's thumbnails in UICollectionView I receive images with filters and crops already applied. There are two methods that return "ready for use"…
Wisors
  • 630
  • 6
  • 15
15
votes
4 answers

Orientation does not behave correctly with Photo in ALAsset

I current have an app that uses ALAsssetsLibrary to fetch the photos. I have placed the photo to an image view and I am able to upload to the server. When I tested on the real device after taking some photos, I found out the photos that supposed to…
LittleFunny
  • 7,205
  • 11
  • 71
  • 166
15
votes
8 answers

Write UIImage along with metadata (EXIF, GPS, TIFF) in iPhone's Photo library

I am developing a project, where the requirements are: - User will open the camera through the application - Upon capturing an Image, some data will be appended to the captured image's metadata. I have gone through some of the forums. I tried to…
Sid
  • 397
  • 1
  • 8
  • 17
1
2 3
41 42