ios - Table scrolling not active after scrollEnabled toggled -


this one's little complicated attempt simplify best can. - bit of long read -hopefully- greater cause i'm making reusable googlemaps-like bottom sheet component ios , ready publish people use. -

i've got pan gesture recogniser in view contains table.to make sure both table , pan view receiving corresponding gestures using:

internal func gesturerecognizer(_ gesturerecognizer: uigesturerecognizer, shouldrecognizesimultaneouslywith othergesturerecognizer: uigesturerecognizer) -> bool {     return true; } 

all good. now, there conditions under dont want them both scroll @ same time. gesture recognising part simple, add custom logic in gesture , nothing. table element i've been using :

datatable.isscrollenabled = false; 

the problem:

while performing pan gesture , condition triggered pan recogniser should stop affecting , table should enabled scroll again, table doesnt scroll (probably doesnt receive gesture ) unless take finger of screen , start gesture again.

this tl;dr version. more details explain example better follow

more info:

i making reusable component mimics 1 google maps has displaying information pin when tap it. android sort of has default didnt find 1 ios , therefore im making it. 99% done shared world last tidbit missing.you can @ google maps better understanding. structure of views follows:

mainview ( pan recognizer attached here ) --tableview

when mainview pulled height, want stop doing while receives pan gestures. using custom logic thats easy achieve. if user keeps on dragging finger up, table should start scrolling instead.

the other way around works fine can imagine, meaning that, if table scrolled , keep scrolling down, when table has been scrolled original position, if user keeps scrolling down, custom logic kicks in , pan recogniser thing, lowering mainview.

p.s: if ve got better title question suggest i'm ears little hard reduce title.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -