uitabbar

How to set the Navigation Bar Color of the Tab Bar Configure Menu

不羁岁月 提交于 2019-12-02 21:56:20
removed dead ImageShack link As you can see the view I need to change is the provided view to customize the tabbar order. I want to change the color of the navigation bar (displaying "Konfigurieren" which means "Configure"), I already found out how to change the color of the "More"-Navigation Controller, but not this one. Can anybody help me with that? Use int AppDelegate tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor blackColor]; I think what you are looking for is this (to do when you create your navigation controller, typically in your app delegate):

How do I change background color of UITabItem when item is selected

自古美人都是妖i 提交于 2019-12-02 20:26:02
I would like a different background color when the user selects a tab bar item than when it is unselected. user1898829 Put this in the Appdelegate.m in application didFinishLaunchingWithOptions UIImage *whiteBackground = [UIImage imageNamed:@"whiteBackground"]; [[UITabBar appearance] setSelectionIndicatorImage:whiteBackground]; serdaryillar if you use a storyboard or xibs, click "Tab Bar" and add "selectedImageTintColor" path into the Key Path Attributes tag. Like this : UPDATE: As of iOS 7.1 this technique no longer works (if the user taps the same tab twice in succession, the background

Tab Bar controller disappearing when moving to another view (iOS SDK, Using storyboards)

只愿长相守 提交于 2019-12-02 19:37:47
I am building an iPhone app using storyboards and I have a problem with the tab bar controller. On one of the views that is linked from the tab bar controller (view1), there is a button that leads to another view (view2). On View2, there is a button that leads back to View1. Very straight forward. But when I go from view1 to view2, the tab bar disappears, and even worse, when I go back to View1, the tab bar is still gone... How can I fix that? (I have yet to put ANY code in the app, there is only the storyboard and the apple provided AppDelegate Class (and also a main file I suppose, but I am

Add a Tab Bar Controller Programmatically to current App Flow

一笑奈何 提交于 2019-12-02 18:44:35
I want to add a tab Bar Controller to my current App Flow. Currently I have a page with a button which on clicking opens a new viewcontroller with a web view where the user logs in and after login I want to take him to his home Page where the navigation bar has his name and a logout button in the right. The home page should also have a tab bar with 3 different tabs. I am able to load the home page view from the webview and get the navigation bar. But I am unable to add the tabBar and get it working. I am confused as to where to add the code for adding TabBar. I am using the below code to add

How can I fix the tab bar of the tab bar controller in iOS?

一个人想着一个人 提交于 2019-12-02 17:04:12
问题 I am adding my own image icon in the bottom of the tab bar, but it only shows a grey square and the title. How can I fix this? 回答1: The problem is that your image lacks transparency. The tab bar expects your image to be a transparency mask (also called a template) - only its degree of transparency / opacity is taken into account. Your image is completely solid opaque, so it appears as a solid square. Either fix your image, or derive from it an image whose rendering mode is Always Original to

iOS 7 tabBar-line, how to remove it?

£可爱£侵袭症+ 提交于 2019-12-02 17:00:20
Apple has added a tiny line over the tabBar in iOS 7 which is supposed to work as a shadow or fade between the tabBar and the UI Since I am using a custom-made tabBar the line is quite irritating. How do you remove it? Please tell me it is possible, otherwise I need to redesign my whole app lol.... / Regards *Edit Sloved my problem with the following line of code: [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]]; UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar_bg.png"]; [[UITabBar appearance] setShadowImage:tabBarBackground]; [[UITabBar appearance] setBackgroundImage

how can I manage controllers in Container View with using tab bar

时光总嘲笑我的痴心妄想 提交于 2019-12-02 16:56:29
问题 On my storyboard I have main ViewController , not TabBarViewController, which consist of TabBar on the bottom, view on the top and ContainerView on the middle. ContainerView have a NavigationController . I also have 4 ViewControllers , one of them - RootViewController of NavigationController . I wish to show one of ViewControllers when I selecting TabBarItem, and in future I will add slide menu, which also will show selected ViewController. I have next code, which only shows initial

How can I change a color of image and label on UITabBar on iOS 7.1?

梦想与她 提交于 2019-12-02 15:52:58
问题 How can I change a color of image and label on UITabBar on iOS 7.1? On iOS 7 I could make it by Tint property. But on iOS 7.1 it doesn't work. 回答1: This changes the tint of both the image and the label, when selected. - (void)viewDidLoad { [super viewDidLoad]; [[UITabBar appearance] setTintColor:[UIColor redColor]]; } 回答2: It works in the same way in iOS 7 and iOS 7.1! In AppDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

UITabBarController only showing half of its UITabBar (off screen)

坚强是说给别人听的谎言 提交于 2019-12-02 10:25:16
问题 My UITabBar is not completely showing after I present a UITabBarController from a UIViewController. Please can you tell me what I am doing wrong? My code is: //some method LoggedInViewController *lvc = [[[LoggedInViewController alloc] initWithAccount:account] autorelease]; [self presentModalViewController:lvc animated:YES]; - (void)viewDidLoad { self.tabController = [[UITabBarController alloc] init]; LoggedInFeedNavigationController *navController = [[LoggedInFeedNavigationController alloc]

Custom UITabBar subclass without Interface Builder

时光怂恿深爱的人放手 提交于 2019-12-02 08:54:42
问题 Using IB (be it with a Storyboard or a XIB), one can easily have the UITabBarController use a subclass of UITabBar, by editing the class name in the Identity Inspector -> Custom Class. How to mimic this "custom class" feature of IB, without using it at all ? I tried the following (in my subclass of UITabBarController) : var customTabBar = MyCustomTabBarSubclass() override var tabBar: UITabBar { return customTabBar } To no avail – the tab bar is displayed, but blank. The issue is not elsewhere