Clancey / FlyoutNavigation

Other
95 stars 87 forks source link

Open Gesture not working with UIScrollView in IOS 7 #37

Closed vifani closed 11 years ago

vifani commented 11 years ago

In IOS 7, if one of the view contains a UIScrollView (you can try also with a DialogVIewController), inside this UIScrollView the open gesture swipe to right is not opening the menu anymore :( I found this problem also with other controls such as UITextView. I guess is a problem about all controls based on a UIScrollView

Clancey commented 11 years ago

Most likely this is content nested in a UINavigationController right? Apple now intercepts the pan gesture for their own swipe back. So you can disable the swipe back, or you can add a new gesture to the navigation controllers view. I do expose the drag method that the flyout uses to move the content. So you just pass the gesture along.

vifani commented 11 years ago

No, the problem is not about using a nested UINavigationController. Please, try using a UIViewController with a UITableView (or a UIScrollView or a UITextView) and try to open the menu applying the gesture on the UITableViewCell.... the menu is not working :(

Clancey commented 11 years ago

I am using it in gMusic without having to do anything special for Tableviews. As for scrollviews, I subclassed it so I could watch the touches and the content offset. I start dragging if the content offset is more then a certain tolerance.