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

Make XBPageDragView only curl up/down #41

Closed
xxtesaxx opened this issue Jan 16, 2013 · 2 comments
Closed

Make XBPageDragView only curl up/down #41

xxtesaxx opened this issue Jan 16, 2013 · 2 comments

Comments

@xxtesaxx
Copy link

Hello,
first i want to tell you that this is a great piece of software - thank you.

My problem is the following. I try to achieve similar behaviour like the Apple Maps App and have some issues which i would like to change. The first one is that i would like to see the dog-ear effect all the time. The second one is, if the view is curled and i want to uncurl it, it looks kind of ugly because a simple tap doesn't uncurl it - i have to drag down the view which causes it to curl from up to down. After the touch ends it moves back. Would it be possible to "glue" the top and left side of the view so curling would only be possible from bottom/right?

I hope you understand what i am talking about and maybe you have an advice for me.

Kind regards
Jan

@xissburg
Copy link
Owner

Hi, thanks for using XBPageCurl.

You can fake the permanent bottom-right corner curl (the "dog-ear") with an image. Add it as subview to the XBPageDragView.

If you add a TapGestureRecognizer to the curlView, you can uncurl it on tap. You can disable dragging by setting curlView.userInteractionEnabled to NO, and in this case you'd have to add the TapGestureRecognizer on the view underneath.

HTH

@xxtesaxx
Copy link
Author

Hi,
thank you for this information. It works like a charme :)

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