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
0
votes
2 answers

AssetsLibrary: Location Services prompt. How did Instagram avoid it?

I am working an app that uses the photos and videos in the AssetsLibrary, and I am just trying to determine once and for all if there is any way around asking the user for permission to access Location data in order to get these assets. I understand…
0
votes
1 answer

AssetsLibrary not producing failure when expected

I have this code: ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library assetForURL:albumCopy resultBlock:^(ALAsset *asset) { NSLog(@"success"); ... } …
Andrew
  • 15,935
  • 28
  • 121
  • 203
0
votes
1 answer

Run assetlibrary code without needing to use current location?

When i run the following code: ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library assetForURL:albumCopy resultBlock:^(ALAsset *asset) { ... } …
Andrew
  • 15,935
  • 28
  • 121
  • 203
0
votes
1 answer

Saving location information of a video using UISaveVideoAtPathToSavedPhotosAlbum

I have a video recording app. I sync the recorded videos to the iPhone Camera Roll using UISaveVideoAtPathToSavedPhotosAlbum. However when I read the synched videos from the Camera Roll using AssetsLibrary framework and access the location…
Sahana Kamath
  • 201
  • 2
  • 8
0
votes
1 answer

writeImageToSavedPhotosAlbum save only a few images

I've been following apples example, QA1702, on how to capture images using the AVFoundation. I won't cite the code here because of space concern. A brief description of what I'm trying to achieve: Use the iPhone camera to pass a "video" (actually a…
Robin Rye
  • 480
  • 1
  • 7
  • 20
0
votes
1 answer

Enumerate audio using assets library framework

I have stable code that allows me to display all user photos and I need to do same with audio files. Is it possible to enumerate audio items like photos with asset library framework or I have to use any other library? Thanks in advance.
Grook
  • 395
  • 1
  • 6
  • 19
0
votes
0 answers

Flutter, confusion with Network assets

Suppose, I have a product page or a carousel and that fetches network data, let us discuss the simplest example with the carousel image data retrieved from Image.network. My question is if I provide the image URLS from a [List], and publish the app.…
Neail
  • 145
  • 9
0
votes
1 answer

loadView is faster than getting images via Assets

So, in init function I am getting images via AssetsLibrary //initWithNibName: photoArray = [[NSMutableArray alloc ]init]; ALAssetsLibrary *asset = [[ALAssetsLibrary alloc] init]; void (^enumerateGroup)(ALAsset *, NSUInteger, BOOL *) =…
juantorena
  • 71
  • 1
  • 9
0
votes
1 answer

Using Three20 ThumbViewer with AssetsLibrary framework

I'm trying to use TTThumbsViewController in conjunction with the AssetsLibrary framework to present a photo gallery similar to the one built into the iPhone. I'm trying by implementing a Photo class which implementes NSObject and wrapping…
John Gibb
  • 10,603
  • 2
  • 37
  • 48
0
votes
1 answer

iOS AssetLibrary Storing Pointer

I have a question on using the AssetLibrary with iOS. It it possible to store a pointer to an image in your app rather than the actual image? Let's say I want to create a playlist, but I don't want to store the actual image. The reason I am…
jabroni
  • 706
  • 1
  • 7
  • 25
0
votes
0 answers

assets-library convert base64

I want to convert base64 the picture to phone for save my db, i select my app in local gallery , get my data, like => > filename: "IMG_0005.JPG" > height: 2002 > isStored: true > playableDuration: 0 > uri:…
0
votes
1 answer

iOS 4 Assets Libraries problem: NSMutableArray contains data in Block, but is empty after Block calls

I'm trying to incorporate the example found on http://www.icodeblog.com/asset-libraries-and-blocks-in-ios-4/ into my own app. This is what I have so far: @interface UserTabBarController : UIViewController
0
votes
2 answers

Assets Library Framework not working correctly on 4.0 and 4.2

I have tried to implement the Asset Library and create a Custom Image Picker. Specifically, I am trying to run the code given here: http://icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/ The code runs…
coderGirl
  • 71
  • 1
  • 7
0
votes
2 answers

Find the size of photos and videos inside (Photo Library) iOS device using Photos Framework on iOS 8

Till iOS 7 we were using Assets Library Framework to get the total size of photos and videos in iOS device, look here : How to find total size for images and videos inside photo library in iOS Can anyone please help me do the same using Photos…
Omkar Jadhav
  • 1,046
  • 3
  • 16
  • 41
0
votes
2 answers

How to show duration of video record in a textfield

I am using AVFoundation to record and save video files to camera roll. But at the same time i wanna show the duration of these video in a simple text field.. Any ideas? //i have seperated as 2 methods but still getting 0 seconds for stopping cam -…
dicle
  • 1,122
  • 1
  • 12
  • 40