Skip to content

BhaveshDhaduk/MHVideoPhotoGallery

 
 

Repository files navigation

MHVideoPhotoGallery

Podfile

platform :ios, '7.0'
pod 'MHVideoPhotoGallery', '~> 1.3'

####Supported Videos

Youtube
Vimeo
Weblinks (.mov, .mp4, .mpv)

####Dismiss Video (Like Paper App)

alt tag

####Dismiss Image (Like Paper App)

alt tag

####Dismiss at the end or start on ScrollDirection (Like Paper App)

alt tag

####OverView interactive (dismiss & present)

alt tag

####Share

alt tag

####OverView

alt tag

####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];

About

A Photo and Video Gallery for iOS 7 designed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published