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

Blank fold #65

Open
pwax opened this issue Aug 8, 2013 · 3 comments
Open

Blank fold #65

pwax opened this issue Aug 8, 2013 · 3 comments

Comments

@pwax
Copy link

pwax commented Aug 8, 2013

In my right folding view, there should be a screenshot of what's in the view on load if I understand that correctly? When sliding to open, initial opening is blank but the items in the view appear and the screenshot is apparent after all folds. How can I fix this?

@bluesuedesw
Copy link

I'm also seeing this behavior. My right view (a MKMapView) is blank or all white on the first unfold animation, then all subsequent folds work as expected. The content loads fine after the unfolding, its just the first unfold animation is not getting the screenshot the first time. This only happens on my right view controller.

I'm using the latest branch with a PaperFoldNavigationController setup.

@jasperblues
Copy link

I had a problem that sounds like it matches this, but fixed it.

I think it was related to calling: [paperFoldview addSubView:]

instead of:

[paperFoldView setLeftContentView]

(hope this helps, apologies if it does not)

@bluesuedesw
Copy link

Appreciate the suggestion but I don't think that would apply in my case. Here is how I initialize the PaperFold view:

PaperFoldNavigationController *paperFoldNavController = [[PaperFoldNavigationController alloc] initWithRootViewController:self.navController];
    [self.window setRootViewController:paperFoldNavController];

    LeftViewController *leftViewController = [[LeftViewController alloc] init];
    UINavigationController *leftNavController = [[UINavigationController alloc] initWithRootViewController:leftViewController];
    [leftNavController setNavigationBarHidden:YES];
    [paperFoldNavController setLeftViewController:leftNavController width:150];

    RightViewController *rightViewController = [[RightViewController alloc] init]; // The MKMapView
    [paperFoldNavController setRightViewController:rightViewController width:250.0 rightViewFoldCount:2 rightViewPullFactor:0.9];

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

3 participants