Latest 1.0.0
Homepage https://github.com/FelixLinBH/GifTabBarController
License MIT
Platforms ios 8.0
Dependencies FLAnimatedImage, Masonry
Frameworks UIKit
Authors

Version
License
Platform

This library provides tabBarController has animation tabBarItem with GIF image.

Preview Screen Shot

GifTabBarController Screenshot

How To Use

Use Cocoapods

pod "GifTabBarController"

Import header file

#import "GifTabBarHeader.h"

Use GifTabBarItem to create UITabBarItem item

Two way init item.

Initialize with tabBar title,gif url string and viewController

- (instancetype)initWithTitle:(NSString *)title gifUrlString:(NSString *)gifUrlString viewController:(UIViewController *)viewController
Example
GifTabBarItem *tabBarItem = [[GifTabBarItem alloc]initWithTitle:@"TabBarItemTitle" gifUrlString:@"www.xxx.1.gif" viewController:viewcontroller];

or

With normalImage and selectedImage

NormalImage will show in normal status(it mean not been selected)

GIF animation is transitions from normalImage to selectedImage.

- (instancetype)initWithTitle:(NSString *)title gifUrlString:(NSString *)gifUrlString viewController:(UIViewController *)viewController normalImage:(UIImage *)normalImage selectedImage:(UIImage *)selectedImage
Example
GifTabBarItem *tabBarItem = [[GifTabBarItem alloc]initWithTitle:@"TabBarItemTitle" gifUrlString:@"www.xxx.1.gif" viewController:viewcontroller normalImage:[UIImage imageNamed:@"normalImage"] selectedImage:[UIImage imageNamed:@"selectedImage"]]];

Use GifTabBarController to create UITabBarController with GifTabBarItem Set.

- (instancetype)initWithTabItems:(NSArray *)array;
Example
GifTabBarController *tab = [[GifTabBarController alloc]initWithTabItems:@[oneTabBarItem,twoTabBarItem,threeTabBarItem,fourTabBarItem,fiveTabBarItem]];

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

To Do

  • Support animation type to control animation while it been selected. (infinite animation or not)
  • Support tabBarItem label change color while it been selected.
  • Support tabBarItem backgound shadow while it been selected.

Dependency

Author

Created by Felix.Lin

License

GifTabBarController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GifTabBarController",
    "version": "1.0.0",
    "summary": "TabBarController with Gif tabBarItem.",
    "description": "TabBarController has Gif image on tabBarItem.It will animation a loop when tapping.",
    "homepage": "https://github.com/FelixLinBH/GifTabBarController",
    "screenshots": "https://raw.githubusercontent.com/FelixLinBH/GifTabBarController/master/1.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "felix.lin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/FelixLinBH/GifTabBarController.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GifTabBarController/Classes/**/*",
    "public_header_files": [
        "GifTabBarController/Classes/*.h",
        "GifTabBarController/Classes/**/*.h"
    ],
    "frameworks": "UIKit",
    "dependencies": {
        "FLAnimatedImage": [],
        "Masonry": []
    }
}

Pin It on Pinterest

Share This