Questions tagged [uitabbarcontroller]

The UITabBarController class implements a specialized view controller that manages a radio-style selection interface. This tab bar interface displays tabs at the bottom of the window for selecting between the different modes and for displaying the views for that mode. This class is generally used as-is but may be subclassed in iOS 6 and later.

uitabbarcontroller
Filter by
Sorted by
Tagged with
80 votes
9 answers
76k views

Tab bar controller inside a navigation controller, or sharing a navigation root view

I'm trying to implement a UI structured like in the Tweetie app, which behaves as so: the top-level view controller seems to be a navigation controller, whose root view is an "Accounts" table view. ...
Daniel Dickison's user avatar
76 votes
16 answers
60k views

How to hide uitabbarcontroller

I have a problem with UITabBarController. In my application, I want to hide it but without using hidesBottomBarWhenPushed because I want to hide it not when I pushed it. For Example, I want to hide it ...
Viktor Apoyan's user avatar
87 votes
18 answers
131k views

Changing Tint / Background color of UITabBar

The UINavigationBar and UISearchBar both have a tintColor property that allows you to change the tint color (surprising, I know) of both of those items. I want to do the same thing to the UITabBar in ...
pixel's user avatar
  • 5,298
55 votes
3 answers
74k views

How to implement tab bar controller with navigation controller in right way

I am using Storyboard and Xcode 6. I have next controllers and scenes in my Storyboard: UINavigationController that has HomeViewController as a root. HomeViewController has a button that Show (e.g. ...
Oleksandr Matrosov's user avatar
52 votes
4 answers
81k views

View Controllers: How to switch between views programmatically?

In short: I want to have two fullscreen views, where I can switch between view A and view B. I know I could just use an Tab Bar Controller, but I dont want to. I want to see how this is done by hand, ...
Thanks's user avatar
  • 40.3k
108 votes
20 answers
59k views

iPhone: How to switch tabs with an animation?

I'm switching tabs programmatically in a tab bar driven application using UITabBarController.selectedIndex. The problem I'm trying to solve is how to animate the transition between the views. ie. from ...
drekka's user avatar
  • 21.4k
4 votes
1 answer
4k views

Changing VC issue in Swift. How to pass data between views in tab bar controller?

I have four ViewController, I don't use an UITabbedbar because It's more difficult to customize. I use modal segue but I think the memory consumption is excessive. this is a screen shot of my first ...
user avatar
76 votes
24 answers
113k views

Change UITabBar height

I use UITabBarController as a root view and app supports iOS 6 and above. Project class hierarchy is as below. UITabBarController - tab1 - UINavigationController - UIViewController -...
Geek's user avatar
  • 8,290
20 votes
3 answers
26k views

iPhone: How to Pass Data Between Several Viewcontrollers in a Tabbar App

I have following problem: I have built a tabbar application with 4 tabs. I want to pass a object/variable from the first tab controller to the third one and initialize this controller with the ...
Simon D.'s user avatar
  • 525
70 votes
6 answers
105k views

Detect when a tab bar item is pressed

I have a root view controller which isn’t set as the custom class for any of my view controllers on my storyboard. Instead, all of my view controllers are subclassing this class like so. // ...
Tunds's user avatar
  • 1,815
22 votes
1 answer
14k views

Showing login view controller before main tab bar controller

I'm creating an iPad app with a tab bar controller that requires login. So on launch, I want to show a LoginViewController and if login is successful, then show the tab bar controller. This is how I ...
user avatar
21 votes
7 answers
26k views

Customizing the More menu on a Tab bar

I am using a tab bar (UITabBarController) on my app and I wish to customize the appearance of the table that appears when you click the more button. I have worked out how to change the appearance of ...
Ian1971's user avatar
  • 3,686
133 votes
24 answers
130k views

Unbalanced calls to begin/end appearance transitions for <UITabBarController: 0x197870>

I read SO about another user encountering similar error, but this error is in different case. I received this message when I added a View Controller initially: Unbalanced calls to begin/end ...
Raptor's user avatar
  • 53.6k
61 votes
20 answers
67k views

How to change inactive icon/text color on tab bar?

How can I change inactive icon/text color on iOS 7 tab bar? The one in gray color.
Pablo's user avatar
  • 28.8k
4 votes
1 answer
51k views

iOS custom tabbar

I just started with iOS development and am just playing around atm. I'm trying to transform the default tabbar buttons into something more custom. After some looking around I found you can create ...
woutr_be's user avatar
  • 9,622
174 votes
12 answers
123k views

Switching to a TabBar tab view programmatically?

Let's say I have a UIButton in one tab view in my iPhone app, and I want to have it open a different tab in the tab bar of the TabBarController. How would I write the code to do this? I'm assuming ...
rottendevice's user avatar
  • 2,869
95 votes
11 answers
151k views

Programmatically switching between tabs within Swift

I need write some code to switch the view to another tab when the iOS app starts (so, for example, the second tab is shown by default rather than the first). I'm new to Swift, and have worked out the ...
Oliver Spencer's user avatar
60 votes
8 answers
74k views

How to hide/show tab bar of a view with a navigation bar in iOS?

I have views with a navigation bar and a tab bar. What I would like to happen is to hide the tab bar on a certain view and show the tab bar again when the user changes views. I saw a snippet of code ...
dork's user avatar
  • 4,498
49 votes
3 answers
81k views

How add tabs programmatically in UITabBarController with swift?

How to create programmatically tabs from any class extended by UIViewController: class DashboardTabBarController: UITabBarController { override func viewDidLoad() { //here } ... }
gellezzz's user avatar
  • 1,203
35 votes
9 answers
30k views

Hiding UITabBar when pushing a UIView

I have a UITabBarController where the default view controller is a UINavigationController. I want to be able to hide the UITabBar of the UITabBarController when I push a certain view in the ...
Benny Wong's user avatar
  • 6,833
35 votes
5 answers
11k views

Prevent automatic popToRootViewController on double-tap of UITabBarController

The default behavior of a UITabBarController is to pop the contained UINavigationController to the root view controller when a particular tab is tapped a second time. I have a particular use case ...
Ecton's user avatar
  • 10.7k
27 votes
6 answers
28k views

How to change the Color of text in UITabBarItem in iOS 5

with more appearance control in iOS 5, how do we change the UITabBarItem text color ? from default white to other color ? EDIT:working solution [[UITabBarItem appearance] setTitleTextAttributes: ...
Desmond's user avatar
  • 5,001
19 votes
6 answers
25k views

Is it possible to hide the tabbar when a button is pressed to allow a full screen view of the content?

I have a UITabBar in the detail view of my navigation based application. I am storing text and images in a tableview and would like the user to be able to tap on a cell to hide the navigation ...
Jonah's user avatar
  • 4,820
5 votes
2 answers
3k views

How to set Image in Tabbar not Tint color in ios?

I have an application with UITabbar , I want to set image in Tabbar but am unable to set image in Tabbar. Instead of as it is image i get image shape in tint color, Is it possible to set image as it ...
princ___y's user avatar
  • 1,089
2 votes
1 answer
359 views

How to get navigation based template functionality in Swift programming

I need a navigation controller through out my project and my application has a social login initially. Once the authentication is verified user will be pushed to another view, where I display a ...
Dee's user avatar
  • 1,897
101 votes
6 answers
136k views

What size should TabBar images be?

I have icons for a tabBar of size 100. I checked at Apple's Human Interface Guidelines of 2013 and it says the image size should be 30x30 / 60x60. But as the height of tab bar controller is 50, I ...
Fahim Parkar's user avatar
  • 31.3k
69 votes
15 answers
87k views

How to hide tab bar with animation in iOS?

So I have a button that is connected to a IBAction. When I press the button I want to hide the tab bar in my iOS app with a animation. This [self setTabBarHidden:hidden animated:NO]; or this [self....
b3rge's user avatar
  • 4,999
60 votes
8 answers
47k views

How do we create a bigger center UITabBar Item

I am wondering how do we create a bigger center UITabBar like the shot below? Its really beautiful!!!!
JayVDiyk's user avatar
  • 4,387
29 votes
6 answers
57k views

Swift: How to execute an action when UITabBarItem is pressed

Currently I have a Tab Bar Controller that is connected to a tableview controller. I'm trying to go to the top of the tableview when I press the tab bar item. I know how to get to the top of the ...
K Swisha's user avatar
  • 313
28 votes
9 answers
44k views

UISplitViewController in a TabBar ( UITabBarController )?

I am in kind of situation that I need to start with a tab based application and in that I need a split view for one or more tabs. But it seems that split view controller object can not be added to the ...
Madhup Singh Yadav's user avatar
17 votes
4 answers
17k views

iOS 6 UITabBarController supported orientation with current UINavigation controller

I have an iPhone app I am updating to iOS 6 that is having rotation issues. I have a UITabBarController with 16 UINavigationCotrollers. Most of the subviews can work in portrait or landscape but some ...
Ryan's user avatar
  • 175
13 votes
8 answers
8k views

How to: Save order of tabs when customizing tabs in UITabBarController

I am having problems finding any other information than the docs for how to save the tab order for my UITabBarController, so that the user's customization is saved for next app launch. I have searched ...
runmad's user avatar
  • 14.9k
6 votes
2 answers
2k views

UIModalTransitionStylePartialCurl with UITabBarController

This question has been asked a lot e.g. here but as far as I can see is yet to be answered in full. I have a UITabBarController with a UINavigationController as the root vc for one of the tabs, which ...
danhopwood's user avatar
44 votes
15 answers
41k views

iOS UITabBar : Remove top shadow gradient line

I implemented a custom UITabBar and I still have this gradient/shadow on top of it. I added [self.tabBar setBackgroundImage:[UIImage imageNamed:@"navBarBottom.png"]]; which is just changing the ...
httpete's user avatar
  • 6,084
31 votes
5 answers
23k views

how to get the event that switch tab menu on iphone

I'm trying to figure out how to catch the event that controls the switch tabs on the UITabBarController. How could I accomplish this?
Yan's user avatar
  • 1,434
29 votes
11 answers
69k views

How can I change the text and icon colors for tabBarItems in iOS 7?

How can I change the text and icon colors for UITabBar and UITabBarItems in iOS 7? The default gray text seems dim and hard to read for unselected tabbar items.
Ed Fernandez's user avatar
  • 1,823
25 votes
16 answers
26k views

How to disable the edit button that appears in the more section of a UITabBarController?

In my application (based on the Tab bar application XCode template) I use a UITabBarController to display a list of different sections of the application that the user can access. By default, the ...
Panagiotis Korros's user avatar
21 votes
3 answers
14k views

How In-Call status bar impacts UIViewController's view size?

I'm trying to understand how the view associated to a UITabBarController, UINavigationController or UIViewController reacts when the in-call status bar is toggled. My trouble is that they seem to ...
yonel's user avatar
  • 7,855
16 votes
8 answers
15k views

UITabBarController Rotation Issues in ios 6

Ack! I had my tabbar rotation issues resolved finally in iOS 5, but iOS 6 and xcode seem to have broken things... here is what I have: Target App Summary includes: Supported Interface Orientations - ...
Zachary Fisher's user avatar
6 votes
2 answers
2k views

Shared iAd banner for UITabBarController based app using XCode 4 with storyboard

Storyboard iAd Tab Bar Controller sample project 1: Download sample project for Xcode 4.2 2: Make the banner visible above the Tab Bar from every view 3: post answer 4: recieve bounty 5: make ...
2 votes
3 answers
2k views

iOS Swift Navigate to certain ViewController programmatically from push notification

I use push notifications to inform the user about different types of events happening in the app. A certain type of push notification should open a special viewcontroller (f.e a notification about a ...
Jochen Österreicher's user avatar
58 votes
4 answers
71k views

Switch tab bar programmatically in Swift

I have a tab bar application and i have a button on my first view which i want to when pressed switch to my second tab programmatically in the tab bar. I can't quite seem to figure it out how to get ...
Azabella's user avatar
  • 847
34 votes
16 answers
33k views

Iphone: Is it possible to hide the TabBar? (Pre-iOS 8)

I have an application that uses a UITabBarController to switch between modes. When in a certain mode, I'd like to hide the tab bar until the steps of that mode have been completed. Note that I'm not ...
Steve's user avatar
  • 2,710
31 votes
10 answers
32k views

Tab Bar covers TableView cells in iOS7

I have a custom tableViewController that I'm adding to a TabBarController with self.tabBarController.viewControllers = [NSArray arrayWithObjects:someOtherViewController, customTableViewController, ...
JuJoDi's user avatar
  • 14.8k
31 votes
5 answers
36k views

How to animate Tab bar tab switch with a CrossDissolve slide transition?

I'm trying to create a transition effect on a UITabBarController somewhat similar to the Facebook app. I managed to get a "scrolling effect" working on tab switch, but I can't seem to figure out how ...
JoniVR's user avatar
  • 1,869
31 votes
3 answers
11k views

iOS Tab Bar icons keep getting larger

I am having a problem with my icons in my tabBar. Tapping the same tab bar button repeatedly will keep increasing the tab bar icon's size. If I push a different one, it goes back to its original size....
jknapp25's user avatar
  • 341
29 votes
10 answers
43k views

How do I hide/show tabBar when tapped using Swift in iOS8

I am trying to mimic the UINavigationController's new hidesBarsOnTap with a tab bar. I have seen many answers to this that either point to setting the hidesBottomBarWhenPushed on a viewController ...
Michael Campsall's user avatar
29 votes
10 answers
67k views

spacing between UITableViewCells

I am creating a ios app in swift and want to add spacing between cells like Facebook (pic bellow). I am using a custom nib for the posts. I know to use UITableViewController. I figure I would use a ...
Now2407's user avatar
  • 469
28 votes
5 answers
26k views

Unbalanced calls to begin/end appearance transitions for UITabBarController

I have an UITabBarController, when initial run, I want to overlay a login view controller but received error. Unbalanced calls to begin/end appearance transitions for < UITabBarController: ...
ZYiOS's user avatar
  • 5,270
26 votes
8 answers
12k views

Load All TabBar Views

I have a tabbar controller as the root view controller. I would like to pre-load the views of tab [1,2,3] (tab 0 loads as the first tab automatically). I essentially would like the code in ...
Laurent May's user avatar

1
2 3 4 5
15