为TabBar项目添加动画:RAMAnimatedTabBarController

RAMAnimatedTabBarController是一个Swift模块,用于为为TabBar项目添加动画。它有预先设定的好的动画,但也可以自定义你想要的任何动画的能力。效果如下:为TabBar项目添加动画:RAMAnimatedTabBarController_第1张图片

用法:

  1. Create a new UITabBarController in your storyboard or nib.

  2. Set the class of the UITabBarController to RAMAnimatedTabBarController in your Storyboard or nib.

  3. For each UITabBarItem, set the class to RAMAnimatedTabBarItem.

  4. Add a custom image icon for each RAMAnimatedTabBarItem

  5. Add animation for each RAMAnimatedTabBarItem :

    • drag and drop an NSObject item into your ViewController
    • set its class to ANIMATION_CLASS (where ANIMATION_CLASS is the class name of the animation you want to use)
    • connect the outlet animation in RAMAnimatedTabBarItem to your ANIMATION_CLASSDemonstration video for step 5


项目主页:http://www.open-open.com/lib/view/home/1421572474687

你可能感兴趣的:(为TabBar项目添加动画:RAMAnimatedTabBarController)