uitabbarcontroller

Is there a way to set a separate short title for UITabBar?

送分小仙女□ 提交于 2020-01-22 22:56:56
问题 I'd like to be able to give my views short names for display on the tab bar, and longer (more descriptive) name when the same view is linked to in a table view. The reason is that longer names nudge up against each other on the tab bar. In a table view, there's more horizontal space, so I want to use more descriptive titles there. Normally, the tab bar's title is set in its view controller with self.title . Is there a way to specifically set the tab bar title, but leave the view controller's

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

Swift TabBar Item color and background color

拜拜、爱过 提交于 2020-01-22 02:21:28
问题 I'm trying to set the icon color and background color of an individual item on my TabBar within the TabBarController. I have 5 icons on my TabBar, 4 of which i've set the color for, it's just this last icon that i'm struggling with. I've attached a link below of an image to show what i'm trying to achieve. The specific icon is (the one in the middle of the image) for my camera feed, this icon i would like to be white and the background to be red. My code so far is such - On my

Swift 3 tab bar disable tab

◇◆丶佛笑我妖孽 提交于 2020-01-17 07:07:51
问题 I have created a tab bar with 5 tabs. we want to create a feature that we can enable/disable some tabs of tab bar programmatically so that user will not able to click on it. We have used default tab bar controller and we are using swift 3. Does anyone have an idea how to manage this stuff? I have tried many ways but it seems that it's not possible to restrict the user to click on the tab. Please let me know if anyone has faced and solved this issue. 回答1: let tabBarControllerItems = self

Swift 3 tab bar disable tab

耗尽温柔 提交于 2020-01-17 07:07:12
问题 I have created a tab bar with 5 tabs. we want to create a feature that we can enable/disable some tabs of tab bar programmatically so that user will not able to click on it. We have used default tab bar controller and we are using swift 3. Does anyone have an idea how to manage this stuff? I have tried many ways but it seems that it's not possible to restrict the user to click on the tab. Please let me know if anyone has faced and solved this issue. 回答1: let tabBarControllerItems = self

Created TabbarController in Storyboard can't change view programmatically

谁说胖子不能爱 提交于 2020-01-16 19:11:28
问题 Created a tabbarcontroller as a detail view of splitview controller. I can change the view by clicking item1 , item2 icons on simulator, but can not change view programmatically. I am getting null when try to print viewcontrollers in nslog . In MasterView: @property (strong, nonatomic) TabBarRootViewController *detailViewController; - (void)viewDidLoad { [super viewDidLoad]; self.detailViewController=[[TabBarRootViewController alloc] init]; //tried also self.detailViewController =

I can not set title to my programatically tab bar controller

空扰寡人 提交于 2020-01-16 08:55:50
问题 I try to create tab bar controller as programatically. It is ok but I can not set title to tab bar items.. How can I do this? - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. myTabBarController = [[UITabBarController alloc] init]; tab1 = [[ZiyaretFormTab1 alloc] initWithNibName:@"ZiyaretFormTab1" bundle:nil]; tab2 = [[ZiyaretFormTab2 alloc] initWithNibName:@"ZiyaretFormTab2" bundle:nil]; tab3 = [[ZiyaretFormTab3 alloc] initWithNibName:

Programming TabBarController with Navigation in appDelegate

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 08:42:48
问题 I am trying to include a navigation controller within the third tab of my tabbarcontroller. I have had some feedback but am only able to get about this far. The code below doesn't produce any errors, but does not seem to work as the app just quits out. Does anyone have any input on what I might be doing wrong? UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"PDCFirstViewController" bundle:nil]; UIViewController *viewController2 = [[SecondViewController alloc]

iPhone refreshing tabcontroller and content

北城以北 提交于 2020-01-15 23:07:55
问题 I have two problems I am trying to solve, one is refreshing the tab controller itself and the other is refreshing the content of the tabcontroller. The reason I wish to refresh the tab controller itself is that my application has a web call which returns a JSON which sets up the order of the tabs and also sets up the content of each tab. I have got it so that when you back out of the application and reenter the application the tab controller is refreshed by putting exit(0) in the AppDelegates

iPhone refreshing tabcontroller and content

天涯浪子 提交于 2020-01-15 23:06:55
问题 I have two problems I am trying to solve, one is refreshing the tab controller itself and the other is refreshing the content of the tabcontroller. The reason I wish to refresh the tab controller itself is that my application has a web call which returns a JSON which sets up the order of the tabs and also sets up the content of each tab. I have got it so that when you back out of the application and reenter the application the tab controller is refreshed by putting exit(0) in the AppDelegates