Giter VIP home page Giter VIP logo

Comments (4)

ctews avatar ctews commented on May 21, 2024

Remove @IBOutlet and @IBInspectable from:

class RAMAnimatedTabBarItem: UITabBarItem {

    @IBOutlet weak var animation: RAMItemAnimation!
    @IBInspectable var textColor: UIColor = UIColor.blackColor()

Set the properties like explained in the Usage section direct on the object in your code and instantiate the custom tabBar elements (also explained in the usage). Worked fine for me, have it working just with code. :)

from animated-tab-bar.

richotice avatar richotice commented on May 21, 2024

can u provide your sample code to me?
1: In viewdidload()
createViewContainers()
fatal error: unexpectedly found nil while unwrapping an Optional value
2. cannot set animation
RAMAnimatedTabBarItem.playAnimation.....
assertion failed: add animation in UITabBarItem

Here is my code to build tabbar

let listTabView = UIViewController()
let uploadTabView = UIViewController()
let statusTabView = UIViewController()
let settingTabView = UIViewController()

var tabViewArray = [listTabView,uploadTabView,statusTabView,settingTabView]
var tabViewTitleArray = ["list","upload","status","setting"]
var imagePath = "icons.bundle/tabIcons/"
var navArray:[AnyObject] = [];
var tag = 0
for viewController:UIViewController in tabViewArray {
    var nav:UINavigationController = UINavigationController(rootViewController: viewController)
    var title = tabViewTitleArray[tag]
    var imageName = NSString(format: "%@%@", imagePath,title)
    var tarbarItem = RAMAnimatedTabBarItem()
    tarbarItem.image = UIImage(named: imageName)
    tarbarItem.title = title
    tarbarItem.animation = RAMRotationAnimation()

    nav.tabBarItem = tarbarItem
    navArray.append(nav)
    tag++
}
self.tabController = RAMAnimatedTabBarController()
self.tabController.viewControllers = navArray

self.tabController.delegate = self
self.tabController.buildTabBarItems()

from animated-tab-bar.

Jasonbroker avatar Jasonbroker commented on May 21, 2024

That's a big headache....Need more help

from animated-tab-bar.

rathodmayur93 avatar rathodmayur93 commented on May 21, 2024

Make sure you're all the UITabBarItem have the animation object.

from animated-tab-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.