uitabbarcontroller

Using UITabBarController with UINavigationController - Swift 3

不羁的心 提交于 2019-12-09 03:59:52
问题 I am making an app which requires a use of a UITabBarController along with UINavigationController . I have made the following flow in storyboard. See image Now the first question is that is this accepted by Apple, as there are too many discussions for the same. The other matter of concern is that is it possible to eliminate any UINavigationController and still get the same flow of the app? The main thing required is to have the SAME tab bar and navigation bar on all sub tabs of the tabs. One

How to add “more” button to Tab Bar?

不想你离开。 提交于 2019-12-09 01:45:52
问题 My iPhone app has a tab bar controller at the bottom of the view - and at the moment I have three buttons on it. However, I want to add more, but to do so I need to turn the last of the three buttons into a "More..." button, because otherwise the text on the other buttons runs into each other. I know that if you have over 5 buttons in the tab bar, then it automatically creates a more button - but is there a way to manually invoke this with the editing capabilities? Thanks. 回答1: You do not

Tabs under UITabBarController's More button have 2 navigation bars

别来无恙 提交于 2019-12-08 14:31:51
问题 I have 6 view controllers on a UITabBarController. Each of them has a UINavigationBar at the top of them (Not linked to a UINavigationController), for showing the title of that view controller, and some buttons for controlling it. This was fine while I had 5 controllers, as no 'More' button would appear, but when I add a 6th, the more button appears. The tabs under that end up having two UINavigationBars! One is the one I added, with my title, the other is created by the TabBar and has a

How to change background color for tab in tvOS 13?

瘦欲@ 提交于 2019-12-08 13:41:38
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.selectionIndicatorImage = UIColor.burgundy.toImage() Nothing helped. After playing a bit with various properties of

Removing TabBar Controller when UIBar Button Clicked

拟墨画扇 提交于 2019-12-08 13:02:46
问题 In my Application first i have some Login View Controller,after login with button action am moving to Tabbar Controller with Four tabs. my problem is i need to quit that tabbar controller when i click on barbutton and need to come to that loginViewController.please anybody help me in this.actually i have tried some methods but i dint get that. Thanks in Advance for Valuable Solution to problem. 回答1: In appDelegate place your tabBar and in side loginView ,add this tabBar TUTAppDelegate

How to condition segues using CloudKit query?

蹲街弑〆低调 提交于 2019-12-08 11:24:17
问题 I created a login page backed up by CloudKit. I want to know how to create a conditioned segue if the login has a certain value, and then direct the user to a View Controller based on that value In details, I have three Segues I want to connect: sign in id segue: LoginSuccessSegue staff tab bar id segue: idStaffTabBar student tab bar id segue: idStudentTabBar First Segue LoginSuccessSegue : the sign in view controller has a show segue id LoginSuccessSegue the connects to staff tab bar

I didn't get any notifications when I touched on tabbar items

Deadly 提交于 2019-12-08 11:18:31
I have UITabbarCoo=ntroller application. I added an observer and I'm waiting for any notifications. I didn't get any notifications when I touched on tabbar items. [self.tabBarController addObserver:self forKeyPath:@"selectedIndex" options:NSKeyValueObservingOptionNew context:@"changedTabbarIndex"]; - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { NSString *action = (NSString*)context; if([action isEqualToString:@"changedTabbarIndex"]) { } } I noticed the same thing. I assume that this is a bug in the

Custom IOS UITabbarController with hidden top gray line

人盡茶涼 提交于 2019-12-08 10:05:36
问题 I'd like to make a view with a unique color with uitabbar i.e I don't want to separate the view into the UITabbar and the rest, so I've created a custom UITabbar programmatically with custom color. The UITabbar and the "rest of the view" have the same color but there is a gray line on top of the UITabbar that separates the to parts. How can I hide that? this is an example image, I want to delete that dark line: https://picasaweb.google.com/felixdl/20Giugno2012#5756005463317234882 SOLUTION

I didn't get any notifications when I touched on tabbar items

心不动则不痛 提交于 2019-12-08 09:56:30
问题 I have UITabbarCoo=ntroller application. I added an observer and I'm waiting for any notifications. I didn't get any notifications when I touched on tabbar items. [self.tabBarController addObserver:self forKeyPath:@"selectedIndex" options:NSKeyValueObservingOptionNew context:@"changedTabbarIndex"]; - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { NSString *action = (NSString*)context; if([action isEqualToString:@

Using Page View Controller inside Tab Swift

非 Y 不嫁゛ 提交于 2019-12-08 09:41:51
问题 MY WORK SO FAR: So I have a Tab bar that looks like this: When I click on "Canteen" I want to be directed to a Page View Controller where I can swipe between different pages but stay on the same tab. I have this somewhat working: I have the Storyboard setup like this: As you can see that segue above is coming from the Tab Bar Controller. The third view (Can Page Item Controller, ID: "CanItemController) is used for all pages in the page view. The second view above (Page View Controller, ID: