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
3
votes
3 answers

ALAsset timestamp returns wrong date

I am trying to get the timestamp of images, I can get the correct latitude and longitude values, but the timestamp always returns the current time, not the EXIF time of the image. ALAssetsLibraryAssetForURLResultBlock resultsBlock = ^(ALAsset…
RexMac66
  • 111
  • 1
  • 9
3
votes
2 answers

AssetsLibrary does not get images saved in the Camera roll when I run the program on the device

I wrote a simple iOS program to get number of photo images which are saved in the camera roll by using 'Assets Library' framework provided in the SDK4.2. The program worked well as I expected when I ran it on the iPhone simulator. But, it didn't…
Hidehiko
  • 31
  • 1
  • 2
3
votes
1 answer

What is equivalent method of ALAsssetsLibrary’s assetForURL:resultBlock:failure in Photos Framework?

I am picking image using UIImagePickerController but I also need image’s name and other metadata information. I could have fetched image asset using ALAsssetsLibrary’s assetForURL:resultBlock:failure method with the help of referenceURL provided by…
Bhushan B
  • 2,470
  • 4
  • 26
  • 38
3
votes
0 answers

Can't edit photo metadata using AssetsLibrary in iOS 8.3 (worked in 8.2)

My app takes pictures, saves them to the camera roll, and allows the modification of the EXIF metadata. I use the AssetsLibrary to save and modify the photo (I can't use the new PhotoKit api because I need to modify the underlying EXIF, plus it's a…
Oude Bruin
  • 31
  • 3
2
votes
1 answer

The execution of block is always delayed

I'm pretty new to IOS. I want to get all pictures on a device in viewDidLoad. but the block is always executed after I called NSLog(@"%d", photos.count) in the code as follows. How to handle such a case? __block NSMutableArray* photos =…
Jin
  • 23
  • 3
2
votes
1 answer

Using AssetsLibrary Framework loading images too slow

I am just using AssetsLibrary Framework to load images from Photos. [UIImage imageWithCGImage:[asset defaultRepresentation].fullScreenImage scale:1.0 orientation:(UIImageOrientation)[asset defaultRepresentation].orientation]; It will take about…
user930924
  • 53
  • 1
  • 4
2
votes
1 answer

AssetsLibrary: Disable Location Service Prompt

I use AssetsLibrary to present pictures from the user's camera roll. However I'm not interested in the location data of those pictures. Is there a way to disable this location service prompt?
user427754
2
votes
1 answer

iOS ALAssetsLibrary and NSFileHandle reading file contents

I want to read the contents of an assets library file in iOS NSFileHandle fileHandleForReadingFromUrl using the asset defaultRepresentation url seems to always return 0x0... I'll keep looking for a solution in the mean time. EDIT: Looks like the…
cynistersix
  • 1,215
  • 1
  • 16
  • 30
2
votes
0 answers

why "type not found" inside haxeflixel project, when i try to "import assets.manager.FileLoader;"?

i use haxeflixel and syntax import assets.manager.FileLoader; after this i have error "type not found" my steps 1- terminal "haxelib install assetsmanager" ... done 2- Project.xml 3- inside PS.hx "import…
2
votes
1 answer

How to receive ALAssetsLibraryChangedNotification in iOS 4 while in background

I would like to register my iOS 4 app as an observer for ALAssetsLibraryChangedNotification and receive notifications when changes happen to the camera roll and photo library. The most obvious scenario is: 1) My app enumerates photo contents using…
rich
  • 201
  • 1
  • 9
2
votes
1 answer

How to Use AssetsLibrary.framework for open a Custom camera in iphone sdk?

I want to Open a custom camera. I try that but not do this type of open custom camera like above image , this isn't really exactly what I wanted. I am new to AssetsLibrary.framework. How to open custom camera like above image?
vijay
  • 1,235
  • 1
  • 11
  • 32
2
votes
1 answer

Is there any way to get a photo' path in photoLibrary?

first of all ,forgive my poor english. this is the first time I post my question. Question: I accessed the AssetsLibrary, got the assets(some pics),then I stored them into a NSArray, and now I want to know their file paths, such as…
traximus
  • 177
  • 3
  • 15
1
vote
1 answer

What is the equivalent of ALAssetsGroupPropertyURL for iOS 4.0

Since ALAssetsGroup or not valid after the life of ALAssetsLibrary I'm saving ALAssetsGroupPropertyURL from valueForProperty but this property is only available from iOS 5.0 How does one can get a hold of it in iOS 4.0+ ?
CiNN
  • 9,752
  • 6
  • 44
  • 57
1
vote
1 answer

Technique to identify a video in iOS camera roll

I'm trying to solve a specific problem (but this could benefit others) which from googling around doesn't seem to have a definitive solution. I think there are probably several partial solutions out there, I'd like to find the best of those (or a…
Steven Elliott
  • 3,214
  • 5
  • 29
  • 40
1
vote
2 answers

iphone: NSDATA dataWithContentsOfURL returning null

I have a problem of getting NSData via [NSData dataWithContentsOfURL: url] and giving me an null object where the url is the NSURL got it from defaultRepresentation of the asset.. The url in the NSURL is :…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198