NZFadeImageView 0.0.4

NZFadeImageView 0.0.4

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

Maintained by Bruno Tortato Furtado.



  • 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

Build Status Analytics

Requirements

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:

  • Foundation.framework
  • UIKit.framework

You will need LLVM 3.0 or later in order to build NZFadeImageView.

Adding NZFadeImageView to your project

Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop all files at 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.

Usage

  • Change Custom Class name at Storyboard and link the image view object to your View Controller class

NZFadeImageView

  • Create plist NZFadeImageView-Images.plist and add images name at root array:

NZFadeImageView

  • Simple example of use in 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
  • Change animation duration or/and animate interval:
- (void)viewDidLoad
{
    [super viewDidLoad];

    [self.fadeView setAnimationDuration:2.25];
    [self.fadeView setAnimateInterval:4.5];
}

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each NZFadeImageView release can be found on the wiki.