Comments (6)
Did you find a solution to this? I'm trying to hide the tabbarcontroller when EAIntroView https://github.com/ealeksandrov/EAIntroView is displayed.
from foldingtabbar.ios.
I tried a clumsy way but worked.
Here is what I did:
- Make a globel variable tabBarController in AppDelegate;
- Use this in every child controller of tabBarController:
-(void)viewWillAppear:(BOOL)animated{
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
if ([appDelegate tabBarController].tabBarView.hidden == NO) {
} else {
[appDelegate tabBarController].tabBarView.hidden = NO;
}
}
3.Add this in the UIViewController you pushed:
-(void)viewWillAppear:(BOOL)animated{
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
if ([appDelegate tabBarController].tabBarView.hidden == YES) {
} else {
[appDelegate tabBarController].tabBarView.hidden = YES;
}
}
I know that is not a smart way, is there any other ideas ?
from foldingtabbar.ios.
Any solution ? I'm stuck on this issue :(
from foldingtabbar.ios.
I'll follow the discussion me too!
from foldingtabbar.ios.
Basically TindleWei's answer, but less code. I did this simply by:
- Just create a YalFoldingTabBarController property in AppDelegate.h
(i.e YalFoldingTabBarController *myTabBarController) - Import AppDelegate.h in the view controller that you want to hide the tabbarcontroller
(i.e #import "AppDelegate.h") - in ViewDidAppear method of that view controller, reference your tabBarController property in app delegate and set the tabBarView to hidden
example:
desiredViewController ()
- (void) viewWillAppear
{
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
[appDelegate myTabBarController].tabBarView.hidden = YES;
}
from foldingtabbar.ios.
Guys, it can be done much simpler:
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
YALFoldingTabBarController *tabBarController = (YALFoldingTabBarController *)self.tabBarController;
tabBarController.tabBarView.hidden = YES;
}
from foldingtabbar.ios.
Related Issues (20)
- unable to add the badge to tabbar item.
- Multiple commands produce
- Memory Issue HOT 1
- The FoldingTabBar is not displayed when using performSegue, The bar is shown but in black HOT 6
- TabBar without controller HOT 2
- Performing a segue from a ViewController HOT 2
- rightItemImage
- Is there any way to show badges on the tabBar items ?
- How to collapse tabbar programatically on swift?
- Making background transparent
- Setting title in view controller make title on tabbar appear
- How to hide the tabbar
- Chat cells animation
- Issue with iPhone X HOT 2
- How to prevent collapse on selecting an item
- Get center and each item views for attaching showcase
- 如果要用纯代码,怎么样集成 HOT 1
- Does not Provide Permission to Change the Colour of View . HOT 1
- So , it is just "wast of time" Library used in iOS HOT 1
- How to add the transparent color to tabBarView HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foldingtabbar.ios.