Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoother Transition Between ViewControllers? #63

Closed
vicc opened this issue Nov 9, 2013 · 5 comments
Closed

Smoother Transition Between ViewControllers? #63

vicc opened this issue Nov 9, 2013 · 5 comments

Comments

@vicc
Copy link

vicc commented Nov 9, 2013

First of all thank you for this beautiful project! It's helped bring my app to life! One thing I do ask is if you could implement a smoother transition between view controllers, in terms of content.

For now when you click say Home on the Menu, the viewController slides into fullscreen beautifully, but the content just pops out of nowhere fast. Could you fade the content inside the view (or the whole view) while it's sliding into fullscreen?

The effect is most evident when you have two viewControllers with tableViews inside and a lot of writing. It just appears choppy.

@romaonthego
Copy link
Owner

I think you need to optimize your code, probably you're doing synchronous calls instead of asynchronous.

@vicc
Copy link
Author

vicc commented Nov 14, 2013

That's not what I meant. I meant it would be pretty cool to have the content cross dissolve in the small viewcontroller when on the side menu, before expanding out. The expanding part works beautiful, I just think the corss dissolve transition would be a beautiful feature to add.

@romaonthego
Copy link
Owner

This is a pretty trivial thing to do, here's an example:

DEMOSecondViewController *viewController = [[DEMOSecondViewController alloc] init];
viewController.view.alpha = 0;
[self.sideMenuViewController.contentViewController.view addSubview:viewController.view];
[UIView animateWithDuration:0.3 animations:^{
    viewController.view.alpha = 1;
} completion:^(BOOL finished) {
    [viewController.view removeFromSuperview];
    self.sideMenuViewController.contentViewController = viewController;
}];

[self.sideMenuViewController hideMenuViewController];

This code needs to be executed when you switch between view controllers.

@romaonthego
Copy link
Owner

I may add a helper function, though.

@vicc
Copy link
Author

vicc commented Nov 16, 2013

How would this be done using storyboards, and storyboard identifiers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants