Comments (7)
I have no idea. Haven't tried it myself, and it would depend on the magic the TTNavigator performs.
But: I assume that, since you set the window on the TTNavigator, it takes over the rootviewcontroller (or at least draws over it). So probably: no.
from viewdeck.
(do you have to set the window? the documentation for TTNavigator says it will use the keyWindow by default. Not sure if it will fix this.)
from viewdeck.
Hello. I kinda gave up on this component for now cause requirements have changed a bit. But when I have time I'll give it another try. Thx for the reply.:)
from viewdeck.
No worries.
from viewdeck.
When setting navigator.window, don't pass a window. Pass the UIView of a custom UIViewController (the one that you will set as the 'central' view controller in ViewDeck:
navigator.window=(UIWindow*)myCentralViewController.view;
this will fool three20's TTNavigator into thinking that it has successfully taken over your window, when in fact, it's just a view. Note, however, that you might need to subclass that view and implement empty UIWindow's methods, such as:
- (void)makeKeyAndVisible{}
.. because three20's TTNavigator still thinks that this is your main UIWindow and expects your object to respond to common UIWindow selectors.
YMMV, because this is uncharted territory and it certainly is a bit of a hack that might have unintended consequences. I must say that in my app, it works beautifully. Don't do this lightly, but if you have to, it works.
**EDIT: you might need to set a negative y on your "fake window" frame, to compensate for the status bar. e.g.:
[[BMEFakeWindow alloc] initWithFrame:CGRectMake(0, -20, 320, 480)];
from viewdeck.
Nice. :)
from viewdeck.
Hey everyone,
I'm looking to have this done but only in one ViewController. I'm using a tab bar for the app but I want the sliding deck on one view Only.
By user @mvarie 's method I only the tabbar disappears and I'm stuck in my middle tab.
Any help would be appreciated :)
from viewdeck.
Related Issues (20)
- question HOT 3
- Does the category of UIViewController change the color of the title in UIAlertAction when I use UIAlertController ? HOT 2
- Any demo for Swift language on implementing this? HOT 1
- Crash in IIViewDeckController HOT 1
- Right side menu not overlapping on Center Controller HOT 2
- hidesBottomBarWhenPushed not working HOT 1
- Unable to set the width left and right HOT 2
- Not reloading sidemenu HOT 3
- How do I change the transition style? HOT 2
- Forbidden Architectures when using the compiled framework HOT 1
- Is it possible to remove the status bar only in the side menu? HOT 2
- Swipe to close or Cancel side menu is not working. HOT 2
- How to navigate between different viewControllers from Side menu?
- carthage is not support
- [self.viewDeckController openSide:IIViewDeckSideLeft animated:NO]
- The BUG is a bit more HOT 1
- changing origin x of centerViewController.view (I don't need parallax center)
- Disable Outside Click
- Open left bar quickly the app get a crash
- How do I set the rightViewController width?
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 viewdeck.