Questions tagged [alassetlibrary]

Class which provides access to the videos and photos in iOS device media library.

30 questions
13
votes
2 answers

ios 8, how to get all photos using ALAssetLibrary to replace the missing camera roll album

I have an app that has a custom Image Picker that uses the ALAssetLibrary to create an Album picker and image picker. We've implemented a custom picker in order for our customers to select multiple images. This image picker works great under iOS 7…
stulevine
  • 143
  • 1
  • 6
9
votes
2 answers

Getting Slow Motion meta data from captured video in iOS

We have a video app that is importing video from the user's camera roll. Our problem is importing slo-mo video taken with the native Camera app. We can recognise that there is a higher than normal frame rate (e.g. 120 or 240 fps). What we can't…
George Sealy
  • 956
  • 1
  • 11
  • 23
4
votes
2 answers

Delete images in camera roll from code iOS

Is there a way to delete images (and videos) in camera roll in the photos app that my app didn't create. I know you can't delete things from Asset Library that your app didn't create. But this app isn't on app store. It's on a kiosk type…
hdsenevi
  • 809
  • 14
  • 27
3
votes
2 answers

Get the Image (UIImage) using asset URL in iOS 7

I have some images in my Photo Album. I have already retrieved the asset urls of all of them.. I want to get a particular image using the asset url... below code gave me asset url.. ALAssetRepresentation *defaultRepresentation = [asset…
codersnet
  • 135
  • 1
  • 3
  • 11
2
votes
0 answers

How do I cancel ongoing task in swift closure?

This is my function to get all assets from PhotoLibrary. // MARK: Album photos func getPhotos() { ImageManger.photoAuthorization { (granted: Bool) in if granted { // Asynchronous get photos, avoid taking the…
iOS
  • 3,292
  • 2
  • 34
  • 72
2
votes
1 answer

Xamarin iOS ALAssetsLibrary WriteVideoToSavedPhotosAlbum doesn't save to library

I am writing an iOS application using Xamarin and am having an issue getting videos to save to my photo library. I am using the WriteVideoToSavedPhotosAlbum method of the ALAssetsLibrary (code below), but the video is never saved. I do no receive an…
miken.mkndev
  • 1,581
  • 2
  • 20
  • 37
2
votes
2 answers

Memory Warning on fetching images from device photo library

I have used following code to fetch images from photo library, resizing it before displaying it is receiving memory warnings. Also it gets terminated due to memory pressure. -(void)readImages:(int)getAlbumImages { imagesArray =…
user3085992
  • 163
  • 1
  • 11
2
votes
1 answer

AssetLibrary - how to load with orientation correction?

I've created a picture indexing service (local, Facebook, Picassa, Instagram, etc). In the collection view, a double-tap will pop the image out of the cell to become full-sized. For local sources, it sometimes uses the wrong orientation. . How can…
Jasper Blues
  • 26,772
  • 18
  • 95
  • 169
1
vote
0 answers

Copy video assets from camera roll to sandbox using ALAssetRepresentation vs AVAssetExportSession

I am trying to migrate my code from ALAssetLibrary to Photos Framework, but I have a problem when I write a file to the sandbox, the size of the files generated do not match. Writing file using ALAssetRepresentation: [[NSFileManager defaultManager]…
1
vote
0 answers

How to create folders inside a custom album in photos app in iphone

I want to create a custom album " My Album" in the photos app in iphone. Inside "My Album" I need two sub albums/folders "Media" and "Web". I am able to create custom album. Is it possible to create folders inside a custom album? If yes then…
Betsy
  • 209
  • 3
  • 10
1
vote
1 answer

[library assetForURL:url resultBlock:^(ALAsset *asset) Not execute

I am getting image asset in this way when user select images from the image picker. -(NSMutableData *)GetImageAsset :(int)index { dm=[DataManager sharedManager]; NSURL *url=[dm.imgAssetsArr objectAtIndex:index]; __block NSMutableData…
user1960169
  • 3,093
  • 10
  • 35
  • 54
1
vote
1 answer

"Correct" way to cast ALAssetRepresentation size (long long) to size_t for 32-bit devices

I've got the following code that pulls data from an ALAssetRepresentation. ALAssetRepresentation *representation = ...; size_t size = [representation size]; // 'size' returns a long long uint8_t *bytes = malloc(size); When building for 32-bit…
Tim Johnsen
  • 1,383
  • 12
  • 30
1
vote
2 answers

AssetLibrary not return all assets with "ALAssetsGroupAll"

I am querying the asset library with the following code ALAssetsLibrary *assetsLibrary = [self defaultAssetsLibrary]; [assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:^(ALAssetsGroup *group, BOOL *stop) { NSMutableArray…
Jarmez De La Rocha
  • 551
  • 1
  • 8
  • 18
0
votes
1 answer

How can I comment ALAssetLibrary delegates

I need to hide the Location service Popup window. I am using ALAsset library in my project. So one person told me to comment the below code from my project: (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation…
Christina
  • 4,658
  • 10
  • 52
  • 81
0
votes
1 answer

How to get read the iCloud/iTunes synced photos

I am developing an application, in that my job is to access the photos from the photo library using AssetsLibrary. But I'm facing following problems: When I try to access the burst photos Try to access the synced photos from iTunes/iCloud. So…
venkat
  • 337
  • 7
  • 20
1
2