RAMAnimatedTabBarController
public class RAMAnimatedTabBarController: UITabBarController
UITabBarController with item animations
-
Returns a newly initialized view controller with the nib file in the specified bundle.
Declaration
Swift
public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?)
Parameters
nibNameOrNil
The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.
nibBundleOrNil
The bundle in which to search for the nib file. This method looks for the nib file in the bundle’s language-specific project directories first, followed by the Resources directory. If this parameter is nil, the method uses the heuristics described below to locate the nib file.
Return Value
A newly initialized RAMAnimatedTabBarController object.
-
Returns a newly initialized view controller with the nib file in the specified bundle.
Declaration
Swift
public init(viewControllers: [UIViewController])
Parameters
viewControllers
Sets the root view controllers of the tab bar controller.
Return Value
A newly initialized RAMAnimatedTabBarController object.
-
Returns a newly initialized view controller with the nib file in the specified bundle.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
Parameters
coder
An unarchiver object.
Return Value
A newly initialized RAMAnimatedTabBarController object.
-
Change selected color for each UITabBarItem
Declaration
Swift
public func changeSelectedColor(textSelectedColor:UIColor, iconSelectedColor:UIColor)
Parameters
textSelectedColor
set new color for text
iconSelectedColor
set new color for icon
-
Hide UITabBarController
Declaration
Swift
public func animationTabBarHidden(isHidden:Bool)
Parameters
isHidden
A Boolean indicating whether the UITabBarController is displayed
-
Selected UITabBarItem with animaton
Declaration
Swift
public func setSelectIndex(from from: Int, to: Int)
Parameters
from
Index for unselected animation
to
Index for selected animation