TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
iOS component for displaying a fullscreen image gallery Supports orientation changes
To be able to show a fullscreen presentation of image from inside your viewController you
should have an instance of FGController
. Creating an instance is pretty straightforward:
_fgController = [[FGController alloc] initWithDelegate:self];
Next, in an method catching user's action or whereever you want to show a fullscreen image, call either
[_fgController showImage:desiredImage];
or
[_fgController showImage:desiredImage fromThumbnail:self.imageView];
By default, iFuga supports all interface orientations regardless whether calling viewController suports them or not.
To restrict iFuga to turn to certain orientation, implement it's delegate method canRotateToInterfaceOrientation:
as desired,
for example:
-(BOOL)canRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
{
return UIInterfaceOrientationIsPortrait(orientation);
}
iFuga was created by @gavrix.
Also, please drop by my blog
iFuga is available under the MIT license. See LICENSE for more info.