[[[[[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]
ios,objective-c,sidebar,tabbarcontroller,swrevealviewcontroller
Rearrange the order create the navigation controller first . then call the UITabbarcontroller
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...
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.
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:...
swift,colors,ios8,icons,tabbarcontroller
Set tintColor property by UIAppearance.