platform :ios, '7.0'
pod 'MHVideoPhotoGallery', '~> 1.3'
####Supported Videos
Youtube
Vimeo
Weblinks (.mov, .mp4, .mpv)
####Dismiss Video (Like Paper App)
####Dismiss Image (Like Paper App)
####Dismiss at the end or start on ScrollDirection (Like Paper App)
####OverView interactive (dismiss & present)
####Share
####OverView
####How to use
/*MHGallery needs the ImageView from which you want to present the Gallery*/
[MHGallerySharedManager sharedManager].ivForPresentingAndDismissingMHGallery = [(MHGalleryOverViewCell*)[tableView cellForRowAtIndexPath:indexPath] iv];
NSArray *galleryData = self.galleryDataSource;
[self presentMHGalleryWithItems:galleryData
forIndex:indexPath.row
finishCallback:^(UINavigationController *galleryNavMH, NSInteger pageIndex, UIImage *image) {
/*set the new ImageView for Dismiss MHGallery*/
[MHGallerySharedManager sharedManager].ivForPresentingAndDismissingMHGallery = iv;
[galleryNavMH dismissViewControllerAnimated:YES completion:nil];
});
} animated:YES];