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

ibook like peeling to the next view . #52

Open
winmhtun opened this issue Jun 19, 2013 · 2 comments
Open

ibook like peeling to the next view . #52

winmhtun opened this issue Jun 19, 2013 · 2 comments

Comments

@winmhtun
Copy link

Hi there,

Awesome library !
I am trying to implement a feature which is like an ibook peeling animation. I want to entirely peel off the first screen when a user drags a curlview for more than 50%.
Could you please suggest me how to achieve this ?

Thanks.

@matt-curtis
Copy link

I've been looking at this recently myself. I would suggest either:

1.) Using XBCurlView and managing cylinder position yourself.
2.) Using XBPageDragView, subclass it (or just edit it) and change the touchesBegan/Moved/Ended functions to move the curl position more than it currently does, possibly based off of the curlView width. You'll need to detect the direction of the drag in order for things to work well.

#2 is probably the easiest/best way to go.

@winmhtun
Copy link
Author

Thanks for your help . I am gonna try it out 👍

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