mariohahn / MHVideoPhotoGallery

A Photo and Video Gallery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

didShowIndex not called when exiting Share view

ripplearc opened this issue · comments

Not exactly a bug, but it would be good if

-(void)galleryController:(MHGalleryController*)galleryController didShowIndex:(NSInteger)index;

can be called when the ShareView quits.

I suggest to make the following changes to make it happen:
In Line 135 of file

MHTransitionShowShareView.m

if ([toViewController.galleryViewController.galleryDelegate respondsToSelector:@selector(galleryController:didShowIndex:)]) {
            [toViewController.galleryViewController.galleryDelegate galleryController:toViewController.galleryViewController
                                                             didShowIndex:toViewController.pageIndex];
        }

Thanks!