ios - How to delete multiple images from photos app selected by ELCImagePickerController? -


i use elcimagepickercontroller select multiple images photos app in application. want delete images photos app selected elcimagepickercontroller. please me solve this.

elcimagepickercontroller allowed 2 methods.

- (void)elcimagepickercontroller:(elcimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsarray *)info; - (void)elcimagepickercontrollerdidcancel:(elcimagepickercontroller *)picker; 

you need use phphotolibrary.

using phassetchangerequest

for project used this, , in swift, hope give right idea. works me:

phphotolibrary.sharedphotolibrary().performchanges({       phassetchangerequest.deleteassets(photoassets)       }, completionhandler: { success, error in       nslog("completed deletion of asset. %@", (success ? "success" : error!))  }) 

you want implement in didfinishpickingmediawithinfo

hopefully helps.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -