uitabbar

UITabBar leaves a white rectangle when hidden

与世无争的帅哥 提交于 2020-01-22 05:54:47
问题 I have been unable to google an acceptable solution to this that can be applied to my project. My app is a graphing tool that has three tabs; one for the graph itself and the other two are for browse/search functions for things that can be added to the graph. All tabs are navigation controllers. The tab for the graph itself, when in portrait mode, displays a small preview of the graph and lists details of each entity that is on the graph below, and displays the tab bar at the bottom. When the

Adding Tab Bar View into an Existing Table Based App - iPhone

本小妞迷上赌 提交于 2020-01-17 05:19:33
问题 I have a table based app and would like to add a tab bar to the bottom to switch between this table and other views. What is the msot hassle free way to do this ? Can I just wire in a tab view controller underneath the table view? Thanks, Martin 回答1: You actually have to load your view controllers into a UITabBarController. So if you have a tableViewController, viewController1, and viewController 2, you want to add all those to the tabBarController. UITabBarController *tabBarController = [

Dismissing viewController by pressing on tabbar button remain black screen swift 5

风流意气都作罢 提交于 2020-01-15 09:18:50
问题 I have a custom action sheet viewController . Which is presented modally on the current top view controller. Like this: //MARK: Static Func static func initViewController() -> CustomActionSheetViewController { let customActionSheetViewController = CustomActionSheetViewController(nibName: "CustomActionSheetViewController", bundle: nil) return customActionSheetViewController } func presentViewController<T: UIViewController>(viewController: T) { DispatchQueue.main.async { if let

Dismissing viewController by pressing on tabbar button remain black screen swift 5

五迷三道 提交于 2020-01-15 09:18:40
问题 I have a custom action sheet viewController . Which is presented modally on the current top view controller. Like this: //MARK: Static Func static func initViewController() -> CustomActionSheetViewController { let customActionSheetViewController = CustomActionSheetViewController(nibName: "CustomActionSheetViewController", bundle: nil) return customActionSheetViewController } func presentViewController<T: UIViewController>(viewController: T) { DispatchQueue.main.async { if let

How do I connect UITabBar items from a UITabBar (not a UITabBarController) to different views in the IB?

[亡魂溺海] 提交于 2020-01-15 05:05:29
问题 I’ve created a StoryBoard project and added a UITabBar to my first view and a few UITabBar items on it. I’m using a UITabBar and not a UITabBarController because the UITabBar needs to be scrollable vertically so it is inside a UIScrollView . I want to connect the UITabBar items to different ViewControllers . How do I do that inside the Interface builder? With UITabBarController it’s just a Ctrl+drag like everything else in the IB, but for some reason the UITabBar acts differently. I’m aware

Reload / Refresh tab bar items in a ViewController ?

痞子三分冷 提交于 2020-01-14 10:30:08
问题 I am trying to change images of my tabbar in a ViewController, but to display the new images, I must click on each tab bar item. for (CustomTabBarItem *myItem in self.tabBarController.tabBar.items){ myItem.enabled = YES; myItem.badgeValue = @"1"; UIImage *myImage = [[UIImage alloc] initWithContentsOfFile:[[DesignManager sharedManager] getPathOfFile:@"test.png"]]; *myItem.imageSelect= *myImage; // change images of each item. don't appear if I dont click on the item } Anyone know How can I can

TabBarController didSelectViewController not working

…衆ロ難τιáo~ 提交于 2020-01-14 09:31:45
问题 I know this is a very repeat topic, but I can't get it works. MainTab.h: #import <UIKit/UIKit.h> @interface MainTab : UITabBarController<UITabBarControllerDelegate, UITabBarDelegate> { IBOutlet UITabBarController *tabController; } @property (nonatomic,retain) IBOutlet UITabBarController *tabController; @end MainTab.m - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom

How to change background color for tab in tvOS 13?

≡放荡痞女 提交于 2020-01-14 03:37:21
问题 TvOS 13. I have a UITabBarController with tabs. And can customize almost everything except this obvious thing: focused tab's background. It's always white. Guide tells Specify tints for selected and unselected items I tried: view.backgroundColor = .purple tabBar.tintColor = .yellow tabBar.barTintColor = .red tabBar.unselectedItemTintColor = .brown tabBar.backgroundColor = .green tabBar.backgroundImage = UIColor.blue.toImage() tabBar.shadowImage = UIColor.orange.toImage() tabBar

Is there a way to adjust the width of UITabBar button items to fit more than 5 buttons on the screen?

烂漫一生 提交于 2020-01-13 13:06:02
问题 My buttons seem stretched, especially in landscape orientation. I can't find a property to adjust either on the UITabBar, UITabBarViewController, or on the UITabBarItem's themselves. (Of course, one answer would be to get an iPad...but that doesn't solve the need for a phone.) For example, consider this simple Tab Bar Example - if I only could set the tab bar to auto-shrink as more buttons are added, or manually adjust the width to fit them all on the tab bar, I would be happy. 回答1: It is not

Is there a way to adjust the width of UITabBar button items to fit more than 5 buttons on the screen?

╄→гoц情女王★ 提交于 2020-01-13 13:05:10
问题 My buttons seem stretched, especially in landscape orientation. I can't find a property to adjust either on the UITabBar, UITabBarViewController, or on the UITabBarItem's themselves. (Of course, one answer would be to get an iPad...but that doesn't solve the need for a phone.) For example, consider this simple Tab Bar Example - if I only could set the tab bar to auto-shrink as more buttons are added, or manually adjust the width to fit them all on the tab bar, I would be happy. 回答1: It is not