Home > DeveloperSection > Interviews > Define use of ALAsset in Photo Library in iOS.

Posted on    December-23-2015 12:16 AM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  369  View(s)
Rate this:

Tarun Kumar

Total Post:107

Points:535
Posted on    December-23-2015 1:16 AM

ALAsset is used to get Photo or Video in the Photo Library. It can be describe itself through Key-Value pairs called Properties. ALAsset can report photo/video creation date, its orientation.
If it is a photo whose metadata contains this information and it contains duration if it is a video.
To fetch property value use - valueForProperty: method (the property have names like ALAssetPropertyType).

Don't want to miss updates? Please click the below button!

Follow MindStick