uitabbarcontroller

UITabBar wont hide

亡梦爱人 提交于 2019-12-10 12:07:30
问题 I have a UINavigationController in a UITabBarController, and I can't seem to get a pushed viewController's tabBar to hide. I am using the following code to hide it: Before it gets pushed: tpsv.hidesBottomBarWhenPushed = YES; tpsv.tabBarController.hidesBottomBarWhenPushed = YES; viewWillAppear: self.tabBarController.tabBar.hidden = YES; AppDelegate *del = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [[[del tabController] tabBar]setHidden:YES]; But none of the above work. If you

iPhone: TabBarController as second level of Navigation Controller

梦想与她 提交于 2019-12-10 12:01:42
问题 I'm new to iphone development. I've read tutorials about implementing a tab bar controller on the window (eg as the main controller for the app). But how can I create a tab bar controller as a 'standalone' UIViewController that can be called by a navigation bar controller? Basically my navigation bar controller has an array of UIViewControllers that it displays in the table and then loads the appropriate view/controller when a user selects an item. Now I want one of these loaded views

Dismiss Modal View from uitabbarController view

こ雲淡風輕ζ 提交于 2019-12-10 11:52:28
问题 I presented a modal view where the presented view contains a tabbar controller.The view is displayed correctly,but when I add the dismissModalViewController to a button in tabbar viewController,it is not dismissing.Nothing is happening to the view. How could I dismiss that modal view Controller? 回答1: The presenting view controller should be the one handling the dismissal of the modal view controller as well. You should use a delegate to notify the presenting view controller that it can

How to place tab bar on top of screen in iPhone

痴心易碎 提交于 2019-12-10 11:47:01
问题 I m pretty new to objective -C and have stumbled upon this issue .. I have to have a tab bar on top of screen and some buttons like search ,Info,Profile on it .If a button is pressed then correspondingly it should open its own view.But I found that in iPhone tab bar is placed at bottom. How can I place tab bar on top of screen.? If not possible then what could be the alternative to achieve my task . Any help is appreciable... 回答1: i think what you searching is here. https://github.com

UIWebView white screen on every launch while preloading all tabs

戏子无情 提交于 2019-12-10 11:41:03
问题 Before I present my issue, I want to mention that I tried looking for solutions here and here. I am creating a hybrid application which uses native UIWebView for rendering the responsive designed web application. Following is the issue description : 1. I have a UITabBarController . 2. Each of the tab has a UIWebView . 3. I have to preload all tabs. 4. I am showing a UIActivityIndicator till the content loads on the first tab. 5. White screen appears for about 8-10 seconds and then the content

UIToolBar on top of UITabBar?

你说的曾经没有我的故事 提交于 2019-12-10 09:26:49
问题 When in the Camera Roll section of the Photos app, you can click the top right button to edit the photos. This replaces the bottom tab bar with three new buttons which are in a UIToolBar. I would like to do something similar, but I cannot get my UIToolBar to be on TOP of the tab bar. Is there a way to specify the layer order? Or do I need to do something different? 回答1: You may be able to add the toolbar as a subview of your key window: [[[UIApplication sharedApplication] keyWindow]

How to limit the number of tabs on a UITabBarController?

余生长醉 提交于 2019-12-10 02:29:19
问题 I have a working iPhone app with a UITabBarController. It all works fine. The app has more tabs than can be shown across the portrait width of the display, so we see 5 tabs in total (the last being the "more" tab). The thing is, we want to relegate some of the "less interesting" things to be behind the "more" tab. I know that if I had just 2 view controllers, then I'd see just 2 tabs, and so on until I exceeded 5 tabs. How can we show just 4 tabs (3 plus a "more" tab), instead of 5? My guess

Is it possible to display a SFSafariViewController inside of a UITabBarController?

烈酒焚心 提交于 2019-12-10 02:07:59
问题 I want to load SFSafariViewController inside of a tab, so the tab bar is at the bottom of the entire Safari view. Is this possible? I tried this with no luck: [self.tabBarController presentViewController:sfController animated:YES completion:nil]; Is it required that the Safari view be full screen? 回答1: I was able to achieve this programmatically. They key to not have the UITabBar overlay on top of your UIViewController is to set translucent to NO : In your AppDelegate.m: @import

XCode: Remove Selection Indicator Image from a particular tab

≡放荡痞女 提交于 2019-12-10 00:30:28
问题 I am using a custom tab bar image and the middle tab is also a custom image (much like an older version of Instagram). Here is some of my code: UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController; UITabBar *tabBar = tabBarController.tabBar; [tabBar setBackgroundImage:[UIImage imageNamed:@"CustomTabBar.png"]]; UITabBarItem *tabBarItem3 = [tabBar.items objectAtIndex:2]; tabBarItem3.title = nil; tabBarItem3.image = nil; [tabBarItem3

How to segue from UIButton to a Tab Bar Item?

血红的双手。 提交于 2019-12-09 23:43:30
问题 I have an app with a tab bar, which contains 5 tabs. I decided to have a "Home screen" instead of opening the app directly in the first tab. My home screen will contain a welcome message AND 5 buttons to segue directly to the wanted tab. Example: the 4th button will go to the 4th tab. After clicking one button, the home screen should never be seen again. The navigation mode will by the tab bar. My Home View Controller 5 buttons and a reference to the Tab Bar Controller, to pass the button