uitabbar

update tab bar height in iOS 7/8 from iOS 6 - UITabBar

一笑奈何 提交于 2019-12-04 19:47:46
I am updating an app that was written for previous iOS (5/6). I have updated the icons for the tab bar; according to the Apple requirements ( Icon and Image Sizes ) they are 50x50p for all devices except the iphone 6 plus. Unfortunately also my tab bar is 49 pixels in height (keep still the iOS6 size) and the icons cover its entire space. This tab bar (UITabBar) was created in the Interface builder but I am not able to change "size inspector" values. iOS 6/7 Deltas values don't do anything. I have setted the Deployment Target to iOS 7.1 and Base SDK to 8.0 How can i change/increase the tab bar

UITabBar images visible on simulator, disappear on the device

孤街浪徒 提交于 2019-12-04 17:14:45
in an iPhone app, I have a UITabBar with three tabs. One has a system image, two more have custom images. These are PNGs, 30x30, palette-based, mostly transparent. These images show up fine in the simulator, but on the device, all I see is a grey gradiented square on a tab. The shapes on these images are grey to begin with, but they do show up as expected on the simulator. Any ideas, please? The image should be white on transparent. It's in the UI design guide. In my case, it was grey on transparent. Simulator forgives that, the device does not. The device itself is pickier about image formats

Rounded corners for UITabBar

↘锁芯ラ 提交于 2019-12-04 16:55:53
I would like to create a UITabBar with rounded corners. Is there a way I can make the UITabBar have rounded corners? It would take the shape of the second picture. The app starts off with a tableView. When the user taps a topic, they are sent to a tabBar controller. -----edit----- This is my AppDelegate: func application(_application: UIApplication, willFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool{ let tabBarController = window?.rootViewController as! UITabBarController let image = UIImage(named: "bar") let tabBarImage = resize(image: image!, newWidth:

manually add UITabBar to UITableViewController

淺唱寂寞╮ 提交于 2019-12-04 16:50:15
I have a standard app with a navigation controller managing several UITableViewController classes. I want to add a UITabBar to the root view (a UITableViewController) to manage filtering the selection of objects showin in the UITableView. I dont want/need a UITabBarController. The UITabBar is only for functionality and UI (radio-button style selection and familiar tabbar UI). I just want to manually create a UITabBar and add it to my view anchored/locked to the very bottom of the screen like is the case when using UITabBarControllers. My main problem is I can't figure out what I should be

how to set iphone tab bar icon by custom images using story board

一曲冷凌霜 提交于 2019-12-04 16:14:02
问题 I am newbie to iphone development,I need to put a custom image icon in the tab bar .But it showing only the default colour(Black&blue) .Help me to overcome from this bug friends...? 回答1: add the Images in application, and See attached Image 回答2: Use this code in viewDidLoad UIImage *selectedImage0 = [UIImage imageNamed:@"selected.png"]; UIImage *unselectedImage0 = [UIImage imageNamed:@"unselected.png"]; UITabBarItem *item0 = [tabBar.items objectAtIndex:0]; [item0 setFinishedSelectedImage

How to re-order segues in initial view's tabbar controller in xcode 4.5?

一个人想着一个人 提交于 2019-12-04 15:47:09
问题 How do I reorder the initial view's tabbar controller elements without having to delete all the segues and re connect them manually in the desired order? Is there a way to change the order of these after they have been hooked up? I was able to do this by just dragging them around in xcode 4.4 but that option seems to be non available in xcode 4.5. Hopefully, this is possible from within the storyboard mode. But if it's only possible programmatically, that's ok too, just looking for any proper

Configuring a UITabBar with more than 16 items

雨燕双飞 提交于 2019-12-04 13:06:43
My UITabBarController contains more than 16 view controllers. When I go in the "More" tab, I can see all the UITabBarItems . If I click the "Edit" button, I can see the 16 first icons, but there is not enough room to display more, so starting from the 17th item, the icons are only partially displayed. Starting from the 21st item, the icons are not displayed at all. And it is not possible to access the rest of the icons with a scroll bar. By the way, this question gives a theoretical answer to my question, but does not address this practical corner case. You need consider other modes of

How to add UITabBar in iphone using objective c

天大地大妈咪最大 提交于 2019-12-04 12:24:22
问题 How to add add UITabBar programmatically for iphone app. Need some suggestion and sample code. 回答1: - (void) setUpTabBar { FirstViewController *firstViewController = [[FirstViewController alloc]init]; firstViewController.title = @"First View"; firstViewController.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0]; UINavigationController *firstNavController = [[UINavigationController alloc]initWithRootViewController:firstViewController];

Remove UITabbar upper border line

孤街醉人 提交于 2019-12-04 09:37:20
问题 I have been using UITabbar in an app. There is an upper border line coming in top of the UITabbar. Refer below image :- I Googled it and tried the suggested code like :- [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]]; Also [[UITabBar appearance] setShadowImage:nil]; self.navigationController.toolbar.clipsToBounds = YES; But none of them is working. Any solution? 回答1: [self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"]; or you can use [[UITabBar appearance] setShadowImage:

Accessing UITabBarController from UIVIewController

陌路散爱 提交于 2019-12-04 08:20:45
问题 I am developing an application based on UITabbar and the view hierarchy as follows. UITabBarController ----> UINavigationController ----> UIViewController I need to access the UITabBarController from the UIIVewController . But following properties always returns nil. self.tabBarController and self.navigationController.tabBarController Is there a way to access the Tabbarcontroller directly from a child viewController without using the AppDelegate ? @implementation HomeViewController - (id