---
title: "Define ALAssetsLibrary in iOS."  
description: "Define ALAssetsLibrary in iOS."  
author: "Tarun Kumar"  
published: 2015-12-07  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22930/define-alassetslibrary-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Define ALAssetsLibrary in iOS.

ALAssetsLibrary is used as a library in iOS. ALAssetsLibrary instance provides access of photos and vedios of the device.\
It is provided on iOS 4.0 version and now it is deprecated in iOS 9.0. It provides many features and better performance for working with user's photo library includes those that are in the Saved Photos album or the images comming from iTunes, and also that were directly imported into divices(like- camera, blutooth, or other medium).\
*To create instance of ALAssetsLibrary use like this:*\

```
ALAssetsLibrary *library=[[ALAssetsLibrary alloc] init];
```

## Answers

### Answer by Tarun Kumar

ALAssetsLibrary is used as a library in iOS. ALAssetsLibrary instance provides access of photos and vedios of the device.\
It is provided on iOS 4.0 version and now it is deprecated in iOS 9.0. It provides many features and better performance for working with user's photo library includes those that are in the Saved Photos album or the images comming from iTunes, and also that were directly imported into divices(like- camera, blutooth, or other medium).\
*To create instance of ALAssetsLibrary use like this:*\

```
ALAssetsLibrary *library=[[ALAssetsLibrary alloc] init];
```


---

Original Source: https://www.mindstick.com/interview/22930/define-alassetslibrary-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
