Menu
  • HOME
  • TAGS

Tab Bar Controller badge not being set?

ios,badge,tabbarcontroller

[[[[[self tabBarController] tabBar] items] objectAtIndex:1] because self is a UITabBarViewController, so you don't need to get tabBarController again.use the code below to get UITabBarItem [[[[self tabBar] items] objectAtIndex:1]

TabBarController with SWRevealViewController

ios,objective-c,sidebar,tabbarcontroller,swrevealviewcontroller

Rearrange the order create the navigation controller first . then call the UITabbarcontroller

Add RightButtonItem to navigation bar when displaying tabbarcontroller views

ios,navigationbar,tabbarcontroller,rightbarbuttonitem

The reason you can't change the right bar button item is because only your tab bar controller is in the navigation controller stack. The view controllers only have access to the tab bar controller. So in order to have a custom navigation bar button, you have to add/set it in...

Xcode 5. Tab bar controller without title - only icons

ios7,tabbar,tabbarcontroller

just don't give title to tab bar item. make it blank in property title or don't set title by code. By this it will not show the title to tab bar item and only icon will be shown.

TabBarController instance Swift 2.0

ios,tabbarcontroller,swift2

You are trying to access the property viewControllers of the type UIViewController, which it doesn't have. viewControllers is a property on a UITabBarController, but viewControllers returns an array of UIViewController. Cast viewControllers to an array of UITabBarController (or only the item you extract) to access it's viewController property. Like this:...

iOS8 Swift TabBarController Change Icon Color

swift,colors,ios8,icons,tabbarcontroller

Set tintColor property by UIAppearance.