Latest 0.0.4
Homepage https://github.com/NZN/NZFadeImageView
License MIT
Platforms ios 5.0, requires ARC
Authors

NZFadeImageView License MIT

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
Cocoapods
Cocoapods
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

Cocoapods

CocoaPods is the recommended way to add NZFadeImageView to your project.

  • Add a pod entry for NZFadeImageView to your Podfile pod 'NZFadeImageView', '~> 0.0.1'
  • Install the pod(s) by running pod install.

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.

Latest podspec

{
    "name": "NZFadeImageView",
    "version": "0.0.4",
    "license": "MIT",
    "summary": "This class performs the rotation of images with fade-in/fade-out effects in a given time interval.",
    "homepage": "https://github.com/NZN/NZFadeImageView",
    "requires_arc": true,
    "platforms": {
        "ios": "5.0"
    },
    "authors": {
        "Bruno Tortato Furtado": "[email protected]"
    },
    "source_files": "NZFadeImageView/*.{h,m}",
    "source": {
        "git": "https://github.com/NZN/NZFadeImageView.git",
        "tag": "0.0.4"
    }
}

Pin It on Pinterest

Share This