tabbar

Disable action - user taps on tabbar item to go to root view controller

六月ゝ 毕业季﹏ 提交于 2019-11-29 03:08:55
I want to disable the default action when user taps the tabbar item. For example, i have a tabbar with Tab1, Tab2 and Tab3. In Tab1, user can navigate from View1 to View3 (View1 > View2 > View3). If user is at View3, and he taps the Tab1, the application takes the user to View1 (the root view controller). I want to disable this functionality. I don't want the tap on Tab1 to pop all the view controllers. How can i do that? Edit: This behavior is a little strange, but a handy shortcut in case of deep hierarchy! You can implement following UITabBarControllerDelegate methods to disable this system

iOS- How to Hide/Show UITabBarController's tab bar with animation?

本秂侑毒 提交于 2019-11-29 02:38:45
I have a question about iOS's UITabBarController 's tab bar. I'm using a UITabBarController to display a few views, but as I want the views to be displayed with as large a screen as possible. Is it possible to hide the tab bar so that it normally doesn't show, until the user touches the screen, then the tab bar will (with animation) show up at the bottom. Then, after a few seconds, if nothing is done, then the tab bar will again go away, so that the view going back to be full screen again? This is how you show it - (void)showTabBar:(UITabBarController *)tabbarcontroller { tabbarcontroller

Show / Hide tab bar

孤人 提交于 2019-11-29 00:41:40
Everyone I have a problem and I have been searching the solution but could not find any. I am working on a tab bar based app. Problem is that I want to hide tab bar at first screen and then show it on all other screens that are being displayed after first screen. Can anyone please give me the best solution for this problem? Actual scenario is that I have a screen that is login screen. Now i dont want to show tab bar here as tab bar will be displayed only if the user is signed in. When user logs in, I want the tab bar to be displayed showing its contents. Best Regards If you have your Tab Bar

self.tabBarItem.title not working?

家住魔仙堡 提交于 2019-11-28 23:32:26
In my iPhone application, I have a tab bar. This tab bar holds a UINavigationController. I have: In Interface Builder set the tab item title to 'Create New' In the UINavigation controller I have self.tabBarItem.title = 'Create New'; and self.title = 'Create New'; In the UIViewController pushed onto the controller: self.tabBarItem.title = 'Create New'; but self.title = 'Blah'; . But, always, the self.title of the first view controller pushed onto the navigation controller is shown (Blah). How would you set the title of the tab bar item? Thanks, Isaac Waller I found if I used self.navigationItem

iOS TabbarViewController hide the tab bar

和自甴很熟 提交于 2019-11-28 19:16:43
I have a viewcontroller that it implement UITabbarViewController, and I want to hide the tab bar and override it by myself, self.tabBar.hidden = YES; the tab bar disappeared BUT there is a blank area(the blue one) at the bottom of the view. I dont want the blank area , how can I fix this? Thank you. edit: the blue area is: self.view.backgroundColor = [UIColor blueColor]; We've done exactly the same in our application. To hide the default TabBar, simply override the hidesBottomBarWhenPushed method in your parent view controller (or in every view controller in your App) #pragma mark - Overriden

Remove TabBar item in Swift

风格不统一 提交于 2019-11-28 11:10:14
I currently try to find a way to remove while run the app a TabBar Item, i found a way to enable or disable it but not to complete remove it. For disable it i do: In ViewDidLoad if let tabBarItem = self.tabBarController?.tabBar.items?[3] as? UITabBarItem { tabBarItem.enabled = false } This works well but still the user can see the TabBar item and i ll simply complete remove it, is there a way? I want to trigger the TabBarItem via Parse, if i set the Parse Data to true it should show other way it should not. You want to set the viewControllers property of your tabBarController with an array

How do I change the background of a UINavigationBar?

主宰稳场 提交于 2019-11-28 08:47:59
I'd like to change the background of my UINavigationBar to a [UIColor colorWithImage:] , but it isn't working. What am I missing? EDIT: Once I've created my subclass, where do I set the UINavigationController to use it? You can use the tintColor property to change the colour of a UINavigationBar , but to set an image as the background you'll have to provide your own UINavigationBar subclass and override the drawRect: method, for example: - (void)drawRect:(CGRect)rect { // Drawing code UIImage *img = [UIImage imageNamed: @"background-image.png"]; [img drawInRect:CGRectMake(0, 0, self.frame.size

how to create a tabbar programmatically and adding buttons on it

北战南征 提交于 2019-11-27 22:50:49
问题 i want to add buttons on to my tab bar programmatically in my view... i am having navigation controller but it does not allow me to add these .. i want to create programmatically in my view... 回答1: Since a tab bar controller is a container view controller that you use to divide your application into two or more distinct modes of operation, most apps have navigation controllers as children of tab bar controllers. Apple's position is this: You use tab bar controllers in situations where your

Disable action - user taps on tabbar item to go to root view controller

a 夏天 提交于 2019-11-27 22:05:02
问题 I want to disable the default action when user taps the tabbar item. For example, i have a tabbar with Tab1, Tab2 and Tab3. In Tab1, user can navigate from View1 to View3 (View1 > View2 > View3). If user is at View3, and he taps the Tab1, the application takes the user to View1 (the root view controller). I want to disable this functionality. I don't want the tap on Tab1 to pop all the view controllers. How can i do that? Edit: This behavior is a little strange, but a handy shortcut in case

Adding login screen in front of Cocoa Touch Tab Bar Application for IOS

≡放荡痞女 提交于 2019-11-27 19:10:01
Still getting my head around things here. I'm not even close, but anyways.... I have a TabBar application created from Xcode. It works I have three tab views, that I know how to manipulate, etc. I'd like to put a 'login' nib file in front of this whole thing, requiring a user to answer a (hardcoded for now) username and password. If you get that right, then, render the tab portion, allowing them to click around. I have another application that I've written that does the username and password part, I'm having trouble taking the logic from there, and putting it in front of the TabApplication