I have a list of pictures in NSUrl format that I want to convert to PHAsset list of object.
How can I perform it?
My goal is to upload a list of pictures to my view on viewDidLoad state.
I started to work with the PHAssets library in iOS 8 and above and I notice that there isn't a easy way to save all the assets in memory when exiting from the view controller. Therefore what I did is a little conversion, i'm saving the PHAssets url as NSString object using NSUserDefaults.
Now all I need to perform is to load back the PHAssets list on the load state, to have all the selected pictures available once again on the user view.