TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Bruno Tortato Furtado.
This class performs the rotation of images with effect fade-in, fade-out in a given time interval. This effect is usually applied in the application initial screen, usually on the login screen.
Video example:
NZFadeImageView works on iOS 5.0+ version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
You will need LLVM 3.0 or later in order to build NZFadeImageView.
Alternatively you can directly add source files to your project.
NZFadeImageView
folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.Custom Class
name at Storyboard and link the image view object to your View Controller classNZFadeImageView-Images.plist
and add images name at root array:UIViewController.m
:@interface UIViewController ()
@property (strong, nonatomic) IBOutlet NZFadeImageView *fadeView;
@end
@implementation UIViewController
// default animate interval: 20.0 seconds
// default animate duration: 00.7 seconds
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.fadeView startAnimation];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[self.fadeView stopAnimation];
}
- (void)viewDidUnload
{
[self setFadeView:nil];
[super viewDidUnload];
}
@end
- (void)viewDidLoad
{
[super viewDidLoad];
[self.fadeView setAnimationDuration:2.25];
[self.fadeView setAnimateInterval:4.5];
}
This code is distributed under the terms and conditions of the MIT license.
A brief summary of each NZFadeImageView release can be found on the wiki.