uitabbarcontroller

how to present a navigation controller embedded in a tab bar controller when receiving a push notification

大城市里の小女人 提交于 2019-12-13 17:52:41
问题 I'm working on a project with a tab bar controller and push notifications, when my app receives a push notifications depending of the alert body it will open a determinate view controller that is embedded in tab bar. I already can present the view controller but i lost the tab bar. For presenting the view controller this is what i do: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; vc5 *ivc = [storyboard instantiateViewControllerWithIdentifier:@"vc5"];

UITabBarController application and pushViewController fail

早过忘川 提交于 2019-12-13 17:09:14
问题 I have created a TabBarController app with three ViewControllers inside UINavigationControllers , A, B and C. I have created everything programmatically. Now I want to push some ViewControllers inside one of those TabBar items. For Example if I am in ViewController B and I press one button I want to make a pushViewController to ViewController: D and if I press new button in D I want to go to a new ViewController E. and whenever I want I should can get back by the NavigationController back

How to manage tab bar item in running app in ios

↘锁芯ラ 提交于 2019-12-13 16:17:14
问题 I have created a storyboard with UITabbarController as initial rootViewController and added 6 items in tab bar Till here it is fine. now i need to manage tab bar items on following conditions : if user not logged in - remove 6th item if user logged in - remove 5th item I am able remove tab item in didFinishLaunchingWithOptions in AppDelegate by following code - (BOOL)application : (UIApplication *)application didFinishLaunchingWithOptions : (NSDictionary *)launchOptions { NSString

iOS:Add view below navigation bar across viewControllers

可紊 提交于 2019-12-13 16:16:46
问题 I have a project like this: But I'm trying to figure out how to add a banner below the navigation bar across the navigation bar in a way where can I hide it if is need it. Any of you knows how can I do this? 回答1: plz use TSMessages. This library provides an easy to use class to show little notification views on the top of the screen https://github.com/KrauseFx/TSMessages 回答2: In the main view controller implement the protocol UINavigationControllerDelegate and in the selector

Presenting a new View Controller Keeping Tab Bar

*爱你&永不变心* 提交于 2019-12-13 14:52:14
问题 I'm currently developing an iPhone App supporting iOS6+. The structure of the application has a UITabBarController as the root controller with a number of view controllers assigned to that. On one of the tabs is a UITableViewController with a list of items that, when selected, displays a detail view of that item using a push seque. However, I also have another screen that allows QR scanning. When the QR code is scanned, the result is processed to retrieve an id that I then want to display the

The tabBarController is not displayed

时光毁灭记忆、已成空白 提交于 2019-12-13 13:54:15
问题 i want to make tabbarcontroller programatically. The tabBarController is not displayed in the page. can anyone tell that whts going wrong.and can we make more than one tabbarcontroller in an application ViewController.m - (void)viewDidLoad { report=[[UIViewController alloc]initWithNibName:@"ViewController" bundle:nil]; View1 *template=[[View1 alloc]initWithNibName:@"View1" bundle:nil]; View2 *acc=[[View2 alloc]initWithNibName:@"View2" bundle:nil]; View3 *four=[[View3 alloc]initWithNibName:@

Subclass of UITabBarController, replaced the TabBar and have a display issue

不问归期 提交于 2019-12-13 12:09:59
问题 I have an iPhone app which was built using a standard UITabBarController. This app was created using the standard XCode project template. Now, I have a requirement to change the UITabBar to look very different. The approach I decided to take was like this: in my AppDelegate: for (UIView *view in tabBarController.view.subviews) { if([view isKindOfClass:[UITabBar class]]) { view.hidden = YES; break; } } This works to make the tab bar hidden. Next, I subclassed UITabBarController and I add a

Where should I present Modal View Controller?

淺唱寂寞╮ 提交于 2019-12-13 07:25:51
问题 I have an application with a UITabBarController at its top level. I track which tab a user is on and store it so that when they reopen the application they are on the tab they were on when it was closed. So there is no default tab when the app starts up. I have a modal screen that shows first every time the app starts. It doesn't matter which tab was saved, the user is always presented with this view. Where should this modal view be presented from? The logical thing would be to have the

Resize all viewcontroller frames in tabbarcontroller

大兔子大兔子 提交于 2019-12-13 06:13:57
问题 I have a UITabBarController holding 4 controllers (navigation controllers). Now i would like change the frames of all 4 controller views, so what is the best practice for this ? Note : UITabBarController will always reset the frames of its container views, since it will try to fit them to its container view bounds. 回答1: You can do it by creating custom tabbar controller. Please check below screenshot for how to create custom tabbar to fulfil your requirement. Once you create tabbar this way

hidesBottomBarWhenPushed weird animation behaviour when push

≡放荡痞女 提交于 2019-12-13 05:27:50
问题 I have a tab based application,Which contains no tab bar. For hiding tab bar i am using hidesBottomBarWhenPushed method in storyboard. but using this my view have strength animation like : https://drive.google.com/file/d/14H3Lym0bat4kaYP5rSlFqkJp8QF1xdZm/view The tab bar is visible for some time and then it goes down. For the solution i have put the following code : self.tabBarController.tabBar.hidden = YES; in Viewwillappear but did not work. also i have tried to hide it programatically