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

Glitch/artifact when the device changes orientation #50

Open
pallzoltan opened this issue Feb 13, 2013 · 6 comments
Open

Glitch/artifact when the device changes orientation #50

pallzoltan opened this issue Feb 13, 2013 · 6 comments

Comments

@pallzoltan
Copy link

I'm quite surprised that I can't find this issue in the tracker. The best way to explain is by a video:

http://www.youtube.com/watch?v=3oB5iE8JjS8

You see, the grayscale glitch on the left side of the folds is ruining the whole effect and awesomeness :) I'm testing on iOS Simulator 6.1 and also tried on a real device with iOS 6.1. Same effect.
If anyone had similar experience and found some sort of workaround, please let me know, it's quite crucial in our project.

Thank you,
Z.

@rootd
Copy link

rootd commented Mar 30, 2013

I use this code to simply close the fold before orientation changes. I know this is suboptimal, however it works.

  • (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    [self.paperFoldView setPaperFoldState:PaperFoldStateDefault animated:NO;
    }

@honcheng
Copy link
Owner

I've not been able to figure out how this can support orientation change yet. So it works for you after closing it automatically? I think there's problem with height not changed after the orientation change?

@pallzoltan
Copy link
Author

Thanks rootd, I ended up using a similar (practically identical) solution.
@honcheng, the same glitch appears in Nav-Demo.

@pallzoltan
Copy link
Author

Actually, there still is a problem even if you close on rotation, and that is that when you open it in the other orientation, the folds are white. Would be great to be able to force a redraw of the content somehow. I'll look deeper in the code later on and hopefully post a solution :)

@dstuecken
Copy link

Having the same issues here, did you find out how to redrew the whole thing @pallzoltan ?
I did not take a closer look in the code to find out the reason for this problem, maybe some else did and already fixed it?

@pallzoltan
Copy link
Author

I think I've mentioned this before: instead of redrawing I use the less
userfriendly way of closing paperfold on rotation.
Don't have better news, sorry :)

Z.

On Mon, May 19, 2014 at 9:05 AM, Dennis [email protected] wrote:

Having the same issues here, did you find out how to redrew the whole
thing @pallzoltan https://github.com/pallzoltan ?
I did not take a closer look in the code to find out the reason for this
problem, maybe some else did and already fixed it?


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-43471488
.

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

4 participants