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
Post a Comment