Questions tagged [assetslibrary]

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.

76 questions
52
votes
7 answers

App killed by SIGKILL when changing privacy settings

My iOS app accesses the user's Photos with ALAssetsLibrary. When I change the privacy settings for the app (Settings → Privacy → Photos), the app gets killed by system (SIGKILL). Is this a bug?
qiz
  • 869
  • 1
  • 9
  • 14
14
votes
1 answer

ALAssetPropertyLocation not working on any iOS 4.0+ on 3gs iPhones but working perfectly on iPhone4

I've got an app with location services ENABLED (from settings etc), and I'm reading all the photos from my device using ALAssetsLibrary. It works perfectly on iPhone4 iOS 4.2.1, but the same code and the same assets DONT WORK on any 3gs any iOS…
Dado
  • 1,147
  • 1
  • 13
  • 31
14
votes
4 answers

Send UIImage to LocalwebServer using GCDWebServer

My app using GCDWebServer I get a photo from my iPhone album by using AssetsLibrary and I store them in NSDocumentDirectory. I just want to get access Url to this photo to show them in a web page. There is my code : [_webServer…
user4525004
13
votes
7 answers

Saving Geotag info with photo on iOS4.1

I am having major issues trying to save a photo to camera roll with geotag info on iOS4.1. I am using following ALAssetsLibrary API: - (void)writeImageDataToSavedPhotosAlbum:(NSData *)imageData metadata:(NSDictionary…
Deepak Sharma
  • 131
  • 1
  • 1
  • 4
13
votes
1 answer

Crash being reported for ALAssetRepresentation metadata method

I have some code that wraps an ALAsset object that is retrieved from enumerating the assets in an ALAssetLibrary. I'm getting reports of users encountering crashes with the part of the wrapper object that asks the ALAsset it contains for metadata.…
Faisal
  • 297
  • 2
  • 16
6
votes
3 answers

"More than maximum 5 filtered albums trying to register. This will fail." using AssetsLibrary

I sometimes get "More than maximum 5 filtered albums trying to register. This will fail." when I call setAssetsFilter on a ALAssetsGroup. Anyone knows why? I've seen similar questions but all related to the UIImagePickerController. here the…
lucaconlaq
  • 1,511
  • 4
  • 19
  • 36
6
votes
6 answers

ALAssetsLibrary delete ALAssetsGroup / ALAsset

I have created "photos album" from my App, using IOS AssetsLibrary. Reading ALAssetsLibrary,ALAssetsGroup and ALAsset documentations, i have seen methods to "addAsset","addAssetsGroupAlbumWithName". Is there a way to delete PROGRAMMATICALLY my…
user1226119
  • 324
  • 3
  • 6
5
votes
1 answer

Obtain ReferenceURL after saving an image using UIImageWriteToSavedPhotosAlbum()

I want to obtain the referenceURL to the image that I saved into camera roll using UIImageWriteToSavedPhotosAlbum(). iOS 4.1 or above can do it easily by using AssetLibrary. ALAssetsLibraryWriteImageCompletionBlock completionBlock = ^(NSURL* url,…
5
votes
2 answers

ALAssetsLibrary ALAssetsLibraryAccessUserDeniedError

When you first try to access a user's ALAssetsLibrary, the OS will present them with a dialog asking for permission. If they do not allow this, a failureBlock will be called and will always be called in the future. Is there a way to force a prompt…
rickharrison
  • 4,867
  • 4
  • 35
  • 40
5
votes
3 answers

Writing metadata to ALAsset

I am developing a video app for iPhone. I am recording a video and saving it to iPhone Camera Roll using AssetsLibrary framework. The API that I have used is: - (void)writeVideoAtPathToSavedPhotosAlbum:(NSURL *)videoPathURL …
Sahana Kamath
  • 201
  • 2
  • 8
5
votes
1 answer

How to play video file from asset library

How to play the video file from assets library? I have the URL of file like "assets-library://asset/asset.MOV?id=1000000023&ext=MOV" But I am unable to play this file in media player using the following code: NSString *urlAddress =…
Naveed Rafi
  • 2,503
  • 5
  • 32
  • 40
5
votes
1 answer

ALAssetRepresentation URL 'persistence' lifetime?

Quick question: for how long is an ALAssetRepresentation URL (its 'url' property) guaranteed to point to the same asset? The documentation describes it as 'persistent' but does this mean persistent over a single sync, persistent until new photos are…
damian
  • 3,604
  • 1
  • 27
  • 46
5
votes
1 answer

ios 6.0.1 ALAssetsLibraryChangedNotification, trying to understand what's being sent

i've been working with ALAssetsLibraryChangedNotification in iOS 6.x (6.0.1 specifically at the moment), and i'm getting results are counter to what i'd expect to recieve in my userinfo, based on what I understand from the documentation. Here's my…
4
votes
1 answer

How to get photo/video origin path from assets-library in iOS/iPhone?

I have been faced this issue since more than a week, i am not able to get original photo/video path from assets-library url. I can get its data by saving this file to my app SandBox, but here i want to avoid this things to again create another copy…
Pratik Patel
  • 1,393
  • 12
  • 18
4
votes
0 answers

Is ALAssetsLibrary thread safe (Deadlock occurs when using multiple threads)

I'm currenly working on a tiny project which amis to loading ALL gallery photos into my app to show some fancy effect. Unfortunately, these default thumbnail provided by system cannot meet my requirement. So I try to create my own thumbnails using…
xiaowl
  • 5,177
  • 3
  • 27
  • 28
1
2 3 4 5 6