mwaterfall / MWPhotoBrowser

A simple iOS photo and video browser with grid view, captions and selections.
MIT License
8.75k stars 2.71k forks source link

Customize action button, not only press event. #422

Open WenchaoD opened 9 years ago

WenchaoD commented 9 years ago

Hi @mwaterfall

Can we add this to MWPhotoBrowserDelegate

- (UIBarButtonSystemItem)photoBrowser:(MWPhotoBrowser *)photoBrowser actionButtonSystemItemForPhotoAtIndex:(NSUInteger)index;

So we can do this:

- (UIBarButtonSystemItem)photoBrowser:(MWPhotoBrowser *)photoBrowser actionButtonSystemItemForPhotoAtIndex:(NSUInteger)index
{
    return UIBarButtonSystemItemTrash;
}

So we can do this:

- (void)photoBrowser:(MWPhotoBrowser *)photoBrowser actionButtonPressedForPhotoAtIndex:(NSUInteger)index
{
    // Delete photos
}
dogvscat commented 9 years ago

@WenchaoIOS you can add trash button on toolbar to replace system toolbar.