Git Product home page Git Product logo

Comments (7)

Inferis avatar Inferis commented on August 19, 2024

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.

Inferis avatar Inferis commented on August 19, 2024

(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.

GuyFran avatar GuyFran commented on August 19, 2024

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.

Inferis avatar Inferis commented on August 19, 2024

No worries.

from viewdeck.

mvarie avatar mvarie commented on August 19, 2024

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.

Inferis avatar Inferis commented on August 19, 2024

Nice. :)

from viewdeck.

rnaud avatar rnaud commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.