d0ping / DBAttachmentPickerController

This powerful component allows to select different types of files from different sources on your device.
MIT License
254 stars 52 forks source link

Preselected assets #2

Open logicsb opened 8 years ago

logicsb commented 8 years ago

Provide a method to pass selected assets to open ViewController with history of selections to edit them

Thanks.

d0ping commented 8 years ago

You should use originalFileResource method of the DBAttachment object instance to get PHAsset (or other original data). Also, you can determine selection history via attachmentArray in the FinishPickingBlock. All objects are sorted in the order of selection by the user.

logicsb commented 8 years ago

Ok, but an can't pass the attachmentArray to ViewController to open it with selected. I want open the ImagePicker with selected images by attachmentArray.