Xamarin-Sidebar icon indicating copy to clipboard operation
Xamarin-Sidebar copied to clipboard

Using UITableViewController as content

Open rhanzies62 opened this issue 11 years ago • 5 comments

When i use UITableViewController as my content, the scrolling functionality is not working.

rhanzies62 avatar Mar 06 '15 13:03 rhanzies62

I was able to reproduce your problem by making the Content controller inherit from UITableViewController. I haven't been able to come up with a solution yet but I would guess it has something to do with the gesture recognizer for sliding the menu open. I will continue to try to find a solution for this bug. In the mean time you can work around this by following the tutorial linked below.

http://developer.xamarin.com/guides/ios/user_interface/tables/part_2_-_populating_a_table_with_data/

I apologize for the inconvenience.

jdehlin avatar Mar 09 '15 15:03 jdehlin

This is due to the Pan event handler trapping the scroll event and not passing it on to the table view controller. See http://stackoverflow.com/questions/5426306/

I've forked and am planning to work on this.

l3ender avatar Oct 02 '15 09:10 l3ender

I was able to circumvent this issue by wrapping my UITableViewController inside of a UINavigationController. I haven't had issues with it yet (though I'm in an early development phase). I think that's a suitable workaround given that there is typically an action generated from a table that merits navigation. If navigation isn't required, the navigation bar can be hidden.

l3ender avatar Nov 20 '15 00:11 l3ender

I saw this bug after I saw Swipe Gesture BUG #48 and in my app we do have a UITableViewController inside of a UITabViewController that is inside of a UINavigationController and do still see the issue. I took a simple approach of just putting in a boolean to control if the gesture should be enabled and put it in a pull request Added DisablePanGesture #60 if this could be helpful for you as well.

jasondenney avatar Oct 20 '16 04:10 jasondenney

Closing as resolved by #60

jdehlin avatar Oct 20 '16 04:10 jdehlin