ipup / PPRevealSideViewController

A new container controller to easily push views on side like Path or Facebook
www.ipup.pro
Other
821 stars 194 forks source link

Preload ViewController blank while pan gesture is in progress #116

Closed hermanccw closed 9 years ago

hermanccw commented 9 years ago

Hi there,

I've preloaded a view controller for pan gesture in my main content view like this:

[self.revealSideViewController preloadViewController:self.leftMenuController forSide:PPRevealSideDirectionLeft];

however, when I try to drag from my content view controller, my "leftMenuController" does not come into screen until I release the drag.

any ideas?

ipodishima commented 9 years ago

That might be related on how you are dealing with the subviews building. Please provide any context

VrasidasP commented 9 years ago

I have the same problem, but with UINavigationController. I'm preloading a left menu with - (void)preloadViewController:(UIViewController *)controller forSide:(PPRevealSideDirection)direction withOffset:(CGFloat)offset;

The menu is a normal UIViewController, and everything is fine.

But, when I'm adding the same UIViewController inside a UINavigationController and preload the navigation controller instead, the view only appears when I lift my finger from the opening pan gesture.

Any ideas?