uitabbarcontroller

Swift passing array values when present model dismissing time

别来无恙 提交于 2019-12-24 11:56:20
问题 My scenario, I am having tabbar with three viewcontroller and first tabbar viewcontroller I am showing tableview with some data . Whenever I am clicking the tableview cell I am passing the data to one special present model popupcontroller. If I dismiss popup controller I need to show directly to tabbar index 1 (I mean tabbar second viewcontroller ) also need to pass the values . Here, below code I tried After select the tableview cell passing values to popupview controller Popup close button

TabBarController inside NavigationController

蹲街弑〆低调 提交于 2019-12-24 10:43:31
问题 Imagine that we have multiview apllication which is controlled by Navigation Controller. We go from the first view to second by using pushViewController method and that's not a problem but then we need to move to the third view. And the third one is a view which looks like a TabBar. How do we do that? The third view is supposed to be controlled by TabBarController, isn't it? So how to pass the control? I declared an outlet UITabBarController * tbc and connected it to TabBarController in xib

Update UITabBarItem badgeValue with More view

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:40:46
问题 How can I update the badgeValue of a TabBarItem when I do not exactly know the index of it? It might be in the "More" tab or on the main Tabbar depending on what the user sets.. Also if the tabbaritem is inside "More" I can only add a badgeValue to the More item right? How can I add the badge on the item itself in the tableview which is created automatically by the SDK? 回答1: Yes you can, and you don't have to know index: @implementation SomeController ... -(void)increaseBadgeValue{ NSString

Implement UItabbarController + UInavigationBar in project

倾然丶 夕夏残阳落幕 提交于 2019-12-24 10:01:25
问题 I have navigation controller based project. In my project I have Splash Screen & Login Screen where i have hidden the navigation controller. Now i have to implement TabbarController in the application and It need to be shown the screen after Login Page. I want to add it in AppDelegate.But my problem is that I have set rootviewcontroller of Window as navigation controller. And Now i want to use Tabbar controller also into the Appdelegate class. I am finding difficulty into it. Any help will be

Custom Tab Bar Controller with Navigation Bar

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 07:35:07
问题 I've spent a while looking for a solution to this but haven't found one. I'd like to create a Tab Bar Controller with a navigation bar which is present in all child views. From what i gather, the hierarchy does not allow this, as a tab bar is (equal?) or higher in the hierarchy than a Navigation Controller, and therefor the only simple implementation is to embed each child view of the Tab Bar Controller in a Navigation Controller, like this: I was wondering if there is any technical reason

How to make multiple color tab bar in swift 3

百般思念 提交于 2019-12-24 06:26:30
问题 I've been trying to find the solution to this for the last week, and I have had no luck after trying every possible solution I could find or think of. Every solution I found and have attempted has not worked. I have 4 UITabBarItem's in a UITabBar placed within UITabBarController. I want to put individual background color (OR image) of the UITabBarItem. Screen shot is attached I am using Swift, and iOS SDK 9.3 in Xcode 8.0. If you can only answer in Objective-C that is fine too, any answer

Swift: Programmatically transitioning from 1 view to another via a TabBar and Navigation Controller

北战南征 提交于 2019-12-24 05:47:11
问题 The user logs in and lands on viewNumOne, they fill out their name and address and get to see viewNumTwo and viewNumThree. They now logout. When they log back in I want them to go straight to viewColorBlue (this is where I am having the problem). (Login Screen) View Controller with login fields. Once logged in they go to the rootVC which is a TabBar and they land on the first tab which is viewNumOne (this works fine) (Root) TabBar: (First Tab - tabBar[0]) viewNumNavController > viewNumOne

How to push additional view controllers onto NavigationController but keep the TabBar?

纵然是瞬间 提交于 2019-12-24 04:44:27
问题 I have an app that starts with a basic view controller at the root of my navigation controller - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.navController.viewControllers = [NSArray arrayWithObject:[self getHomeViewController]]; [[self getWindow] addSubview:self.navController.view]; [[self getWindow] makeKeyAndVisible]; return YES; } Once a navigation item is selected I push a tab bar controller w/ a few view controllers. -

Subview shifting down 20 pixels when called in AppDelegate

偶尔善良 提交于 2019-12-24 03:01:22
问题 I'm facing this issue when I'm calling AdMob ad with [rootController.view addSubview:adMobAd]; //setup the ad Upon returning from the ad being clicked the AdMob frame moves down 20 pixels. However it seems that this is not a AdMob issue, but a issue that is also discussed here: https://discussions.apple.com/thread/2288486 However I couldn't get it to work, any ideas? 回答1: 20 pixels is the height of the status bar. If the app will don't use the status bar make sure all the XIB files you are

Subview shifting down 20 pixels when called in AppDelegate

不羁的心 提交于 2019-12-24 03:01:07
问题 I'm facing this issue when I'm calling AdMob ad with [rootController.view addSubview:adMobAd]; //setup the ad Upon returning from the ad being clicked the AdMob frame moves down 20 pixels. However it seems that this is not a AdMob issue, but a issue that is also discussed here: https://discussions.apple.com/thread/2288486 However I couldn't get it to work, any ideas? 回答1: 20 pixels is the height of the status bar. If the app will don't use the status bar make sure all the XIB files you are