Latest 0.1.0
Homepage https://github.com/ixmwl/XMTabBar
License MIT
Platforms ios 8.0
Authors

为TabBar点击增加动画效果,让你的点击不再单调,暂时就提供五种动画效果,具体效果可参考下面的动图

  • 弹跳效果

  • 缩放效果

  • 翻转效果

  • 粒子爆炸效果

  • 抖动效果

Requirements 要求

  • iOS 7+
  • Xcode 8+

Installation 安装

  • 手动安装

    下载DEMO后,将子文件夹XMTabBar拖入到项目中, 导入头文件XMTabBar.h开始使用,无需依赖其他框架

  • CocoaPods安装

    pod 'XMTabBar'

Usage使用

  • 导入头文件
#import "XMTabBar.h"
#import "XMTabBarItem.h"
  • 定义一个tabBar
@property(nonatomic,strong)XMTabBar *xmTabBar;
  • 初始化自定义的TabBar
XMTabBar *xmTabBar = [[XMTabBar alloc] initWithFrame:self.tabBar.frame
                                   animationType:XMTabBarAnimationTypeShake];
xmTabBar.xmdelegate = self;
// 利于kvc替换系统TabBar
[self setValue:xmTabBar forKeyPath:@"tabBar"];
self.xmTabBar= xmTabBar;
  • 实现代理方法,切换控制器
-(void)didSelectedItem:(NSInteger)index{
    self.selectedViewController = self.viewControllers[index];
}

Author

ixmwl, [email protected]

License

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

Latest podspec

{
    "name": "XMTabBar",
    "version": "0.1.0",
    "summary": "u4e3aTabBaru70b9u51fbu6dfbu52a0u52a8u753bu6548u679c.",
    "description": "u6682u65f6u4e3aTabBaru7684u63d0u4f9bu56dbu79cdu70b9u51fbu52a8u753bu6548u679c:1u3001u5f39u8df3u52a8u753b 2u3001u7f29u653eu52a8u753b 3u3001u7ffbu8f6cu52a8u753b 4u3001u7c92u5b50u7206u70b8u52a8u753b.",
    "homepage": "https://github.com/ixmwl/XMTabBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ixmwl": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ixmwl/XMTabBar.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "XMTabBar/Classes/**/*"
}

Pin It on Pinterest

Share This