uitabbarcontroller

Same view in multiple tabs

好久不见. 提交于 2020-01-02 05:24:08
问题 My app has a UITabBar with four tabs... each with its own custom UIViewController. Three of them have a map plus other UI elements in common, in the same place on the screen.. in two of these views the map is initially hidden. It seems like it would make more sense to make these three view the same instance of the same view controller.. and just hide/show elements. Is it possible to do this with the tab bar? 回答1: I don't think those who answered "yes" read your question closely enough. You

Instantiate View Controller Swift 3 Tab Bar Controller

荒凉一梦 提交于 2020-01-02 05:00:08
问题 How can I segue to a tab bar controller? Theres 2 view controllers on tabs with navigation controllers and a navigation controller on the tab bar controller. let storyboard = UIStoryboard(name: "PendingOverview", bundle: nil) let vc = storyboard.instantiateViewController(withIdentifier: "PendingOverviewVC") as! PendingOverViewController let nc = UINavigationController(rootViewController: vc) self.present(nc, animated: false, completion: nil) Thank you 回答1: In Storyboard set identifier to

Custom UITabBar in Monotouch

一笑奈何 提交于 2020-01-01 19:50:51
问题 I am trying to create a custom UITabBar. I have the regular UITabBarController working fine, but optimally, I wish to get it looking like this: What is the best way to approach this? I can't seem to find any useful examples in Monotouch. Thanks 回答1: The way I figured to make a tab bar like that, is just a bunch of custom buttons that are arranged and programmed to look like a tab bar, but really they are just buttons. I was able to recreate the instagram tab bar in one of my apps and it looks

UIScrollView is cut off from UITabBarController

∥☆過路亽.° 提交于 2020-01-01 11:55:09
问题 I have a UIScrollView that I place inside of a view (interface builder document .xib/.m/.h), however the lower portion of the UIScrollView is getting clipped and not showing the lower half of itself because of a UITabBarController I have. I implemented the UITabBarController in the appdelegate file, so there is no UITabBarController that is seen in the XIB, however if I place another UITabBarController in the XIB to simulate the one i've already created, I will get two when I test the

want to navigate between tab bars by using swipe gesters in swift

折月煮酒 提交于 2020-01-01 10:03:42
问题 I want to use a swipe gesture to navigate between tab bar controllers while keep the default tab bars. I used this code but shows an error. import UIKit class FirstViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() var leftSwipe = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:")) leftSwipe.direction = .Left view.addGestureRecognizer(leftSwipe) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any

Core Data and UITabBar Controller - help?

匆匆过客 提交于 2020-01-01 07:06:44
问题 So I have a Project with a UITabBarController and a few Navigation Controllers, and I am trying to implement Core Data. Its just not working. I have a bit of a weird setup: UITabBarController -> Navigation Controller -> Table View Controller I have copied all of the Core Data code and added an entity with an attribute ('Event' and 'name' - just like the tutorials). I keep getting the error: erminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName:

How to access ObjectAtIndex in tabBarController with Swift?

半世苍凉 提交于 2020-01-01 04:26:09
问题 i used to say in obj-c [self.tabBarController.viewControllers objectAtIndex:1]; but now in swift no ObjectAtIndex any more self.tabBarController.viewControllers.ObjectAtIndex Update ok i am gonna make it simple lets consider i have tabBarController it contains 2 object [FirstViewController,SecondViewController] and i am trying to make a delegate between the object here is the code to set the delegate var Svc:SecondViewController = self.tabBarController.viewControllers[1] as

How to change RootViewController (in AppDelegate) from within CustomViewController?

≯℡__Kan透↙ 提交于 2020-01-01 03:39:10
问题 Good day, My app has authorization form (SigninController) which is loaded in AppDelegate, and after signing in (checking is in SigninController.m) TabBarController should appear (as main view of application). How can I change controller from Signin to TabBar and where ?? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { SigninController *aSigninController = [[SigninController alloc] initWithNibName:@"SigninView" bundle:nil]; self

Black background on transparent UITabBar

放肆的年华 提交于 2019-12-31 09:46:35
问题 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

Black background on transparent UITabBar

落爺英雄遲暮 提交于 2019-12-31 09:46:10
问题 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