Back to Animated Tab Bar

RAMAnimatedTabBarController

docs/Classes/RAMAnimatedTabBarController.html

5.2.03.5 KB
Original Source

RAMAnimatedTabBarController

public class RAMAnimatedTabBarController: UITabBarController

UITabBarController with item animations

[

life circle

](#/life%20circle)

`

                init(nibName:bundle:)
                `

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.

`

                init(viewControllers:)
                `

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.

`

                init(coder:)
                `

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.

`

                changeSelectedColor(_:iconSelectedColor:)
                `

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

|

`

                animationTabBarHidden(_:)
                `

Hide UITabBarController

Declaration

Swift

public func animationTabBarHidden(isHidden:Bool)

Parameters

| isHidden |

A Boolean indicating whether the UITabBarController is displayed

|

`

                setSelectIndex(from:to:)
                `

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

|

© 2016 AlexKalinkin. All rights reserved. (Last updated: 2016-06-10)

Generated by jazzy ♪♫ v0.5.0, a Realm project.