GGFullscreenImageViewController 1.0.0

GGFullscreenImageViewController 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • John Z Wu

Video

Click here to see it in action

How To Use

UIViewController subclass that lets you fullscreen an UIImageView. Assuming self is your UIViewController subclass and imageView is the UIImageView you want to fullscreen. Just do:

GGFullscreenImageViewController *vc = [[GGFullscreenImageViewController alloc] init];
vc.liftedImageView = imageView;
[self presentViewController:vc animated:YES completion:nil];

You can optionally set supportedOrientations on GGFullscreenImageViewController. By default, GGFullscreenImageViewController supports all orientations defined in your info-plist. GGFullscreenImageViewController also provides a UIScrollView to allow zooming.

Notes

You should set imageView.contentMode = UIViewContentModeScaleAspectFit for best results.