uitabbarcontroller

Black background on transparent UITabBar

*爱你&永不变心* 提交于 2019-12-31 09:46:02
问题 I am trying to make a blurred background the UITabBar for my UITabViewController , and the idea is to have it be blurred and transparent so that the views underneath can be seen scrolling by. Unfortunately I cannot for the life of me get the tab bar to be transparent. No matter what I do, there is always some black background to the tab bar that prevents the underlying view controllers from showing through. If I change the alpha of the UITabBar to something low I can see that the tableview is

how to show the tabbar when keyboard appears in iphone

别等时光非礼了梦想. 提交于 2019-12-31 06:58:08
问题 hello all i am working in a tabbar based application where i need to show a keyboard , the keyboard appearing generally but I want my tabbar should be shown and on above of the tabbar only the keyboard should shown how this can be done.. thank you all 回答1: You can move the tabbar along with the keyboard like this: - (IBAction)textBoxEditing:(id)sender { CGRect frame = [[[self tabBarController] tabBar] frame]; frame.origin.y = 712; [UIView animateWithDuration:0.25f animations:^ { [[[self

Unwind from a VC to a TabBarController and change tab index

。_饼干妹妹 提交于 2019-12-31 05:40:15
问题 I have the following Storyboard layout: When the app starts it goes to HomeView VC at TabIndex 1. In the HomeView I have a button and I segue to the TestView using performSegue(withIdentifier: "goToStartTest", sender: self) Now I want to go from TestView to HistoryView . The only way I can see to do that right now is to create a segue from TestView to TabBarController . This brings up HomeView with Tab Bar intact. I do this from TestView using performSegue(withIdentifier: "testToRes", sender:

presentViewController does not show Tab Bar or Navigation Bar

坚强是说给别人听的谎言 提交于 2019-12-31 05:12:06
问题 I am new to Swift and have been struggling with this for a while. I am trying to redirect users based on login status to either "Login" viewcontroller or "Home" viewcontroller. "Home" viewcontroller has NavigationBar and TabBar and it shows a table. But, when i use the following code, i see only the table. NavigationBar and TabBar are not shown at all. var view = self.storyboard?.instantiateViewControllerWithIdentifier("HomeViewController") as UIViewController self.presentViewController(view,

iOS Universal app seems slightly zoomed in on phone

耗尽温柔 提交于 2019-12-30 19:52:52
问题 I have an iPad app that I'm converting to a universal app to show on phones. It has both a tab bar and a navigation bar, and my problem is that they are both way too big on the phone. I could swear I heard Paul Hegarty (from the iTunes U class from Stanford on Swift app development) mention a switch or trick somewhere that would cause the bars to adapt to the iPhone, but I can't find it. Here are screenshots of my apps bars, vs the Photos app in the iPhone 6 simulator to show what I'm talking

iOS Universal app seems slightly zoomed in on phone

血红的双手。 提交于 2019-12-30 19:50:31
问题 I have an iPad app that I'm converting to a universal app to show on phones. It has both a tab bar and a navigation bar, and my problem is that they are both way too big on the phone. I could swear I heard Paul Hegarty (from the iTunes U class from Stanford on Swift app development) mention a switch or trick somewhere that would cause the bars to adapt to the iPhone, but I can't find it. Here are screenshots of my apps bars, vs the Photos app in the iPhone 6 simulator to show what I'm talking

Right design pattern for tabbed navigation views?

。_饼干妹妹 提交于 2019-12-30 07:42:58
问题 I've been stuck trying to puzzle this out for a couple days now, and I'll admit I need help. The root view controller of my application is a tab bar controller. I want to have each tab bar a different navigation controller. These navigation controllers have completely different behavior. So how do I set this up in terms of classes? Per Apple's documentation, I'm not supposed to subclass UINavigationViewController . So where do I put the code that drives each of these navigation controllers?

Custom Font in Tabbar

允我心安 提交于 2019-12-30 01:38:27
问题 Hey, is there a way to set the tabbar's font to e.g. Chalkboard? I've seen the question for the font size and tried it with font, but the loop wouldn't work out. If there's no way for a custom font, is it possible to remove all text and make the tabbar's item covering the whole tab? Or can I somehow put a imageView on top of the tabbar and use the tabs "through" that image? Thanks! 回答1: I've found myself an amazing and very easy tutorial to achieve exactly what I need. For further reference

iOS7 - Setting selectedIndex of UITabBarController breaks touch events along right-hand edge of screen?

我只是一个虾纸丫 提交于 2019-12-29 05:13:13
问题 I've hit a weird problem with UITabBarController on iOS7 and can't seem to find a workaround, so any help would be welcome! Scenario: Navigation-based app using landscape orientation on iPad. App consists of a main view, and a second view which is a UITabBarController. TabBarController has two tabs. First view has two buttons - each button performs a segue to the tab bar controller and sets a different tab as selected. (i.e. button1 selects the first tab, and button2 selects the second tab).

How to implement didSelectViewController

◇◆丶佛笑我妖孽 提交于 2019-12-28 18:50:08
问题 I want to catch the event when someone switches between tabs. I have the following two function in my appdelegate file: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UITabBarController * uitbc = [storyboard instantiateViewControllerWithIdentifier:@"tabbarcontroller"]; uitbc.delegate = self; [self.window addSubview:uitbc.view]; return YES; } - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController: