uitableview still show VerticalScrollIndicator when dragging finished
<p>I have created a view as drawer. It contains a UITableview. When i drag UITableview down, the view will swipedown and the UITableview's contentoffset.y still be 0;
I changed UITableview frame in scrollViewDidScroll and scrollViewDidEndDragging, and after the animation UITableview seems like still be dragging that if i click the UITableview won't cause cell selected but VerticalScrollIndicator hide, after that UITableview return normal.</p>

<pre><code>- (void)moveWithOffset:(CGFloat)offset {

CGFloat searchBarTop = _searchBar.top;
    self.height = SCREEN_HEIGHT-NavBar_HEIGHT;
    if (offset &gt; 0) {
        if (GestureViewHeight - _searchBar.top &gt; 0.1) {
            _gestureView.hidden = YES;
            searchBarTop = (_searchBar.top+offset) &lt; GestureViewHeight ? (_searchBar.top+offset) : GestureViewHeight;
        } else {
            _gestureView.hidden = NO;
            if (self.top &lt; SCREEN_HEIGHT/2) {
                self.top = (self.top+offset) &lt; SCREEN_HEIGHT/2 ? (self.top+offset) : SCREEN_HEIGHT/2;
            }
        }
    } else if (offset &lt; 0) {
        if (self.top - NavBar_HEIGHT &gt; 0.1) {
            _gestureView.hidden = NO;
            self.top = (self.top+offset) &gt; 64 ? (self.top+offset) : 64;
            searchBarTop = GestureViewHeight;
        } else {
            _gestureView.hidden = YES;
            if (searchBarTop &gt; 0) {
                searchBarTop = (_searchBar.top+offset) &gt; 0 ? (_searchBar.top+offset) : 0;
            }
        }
    }

[self adjustLayoutWithSearchBarTop:searchBarTop];
</code></pre>

<p>}</p>

<pre><code>- (void)endMoving {
if ((int)self.top == NavBar_HEIGHT) {
    _state = ALDHotScenicSpotSearchViewStateUp;
} else if ((int)self.top == SCREEN_HEIGHT*2/3) {
    _state = ALDHotScenicSpotSearchViewStateMiddle;
} else if ((int)self.top == SCREEN_HEIGHT/2) {
    _state = ALDHotScenicSpotSearchViewStateDown;
} else {
    if (self.top &lt; SCREEN_HEIGHT/3 &amp;&amp; _state != ALDHotScenicSpotSearchViewStateUp) {
        _state = ALDHotScenicSpotSearchViewStateUp;
    } else if (self.top &gt; SCREEN_HEIGHT/3 &amp;&amp; _state != ALDHotScenicSpotSearchViewStateDown) {
        _state = ALDHotScenicSpotSearchViewStateDown;
    } else {
        _state = ALDHotScenicSpotSearchViewStateMiddle;
    }
}
[self animatingToState:_state];
</code></pre>

<p>}</p>

<pre><code>- (void)animatingToState:(ALDHotScenicSpotSearchViewState)state {
switch (state) {
    case ALDHotScenicSpotSearchViewStateUp:
    {
        [UIView animateWithDuration:0.3 animations:^{
            self.frame = CGRectMake(0, NavBar_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT-NavBar_HEIGHT);
            _gestureView.hidden = YES;
            [self adjustLayoutWithSearchBarTop:0];
        }];
    }
        break;
    case ALDHotScenicSpotSearchViewStateDown:
    {
        [UIView animateWithDuration:0.3 animations:^{
            self.frame = CGRectMake(0, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT/2);
            _gestureView.hidden = NO;
            [self adjustLayoutWithSearchBarTop:GestureViewHeight];
        }];
    }
        break;
    case ALDHotScenicSpotSearchViewStateMiddle:
    {
        [UIView animateWithDuration:0.3 animations:^{
            self.frame = CGRectMake(0, SCREEN_HEIGHT/3, SCREEN_WIDTH, SCREEN_HEIGHT*2/3);
            _gestureView.hidden = NO;
            [self adjustLayoutWithSearchBarTop:GestureViewHeight];
        }];
    }
        break;

    default:
        break;
}
</code></pre>

<p>}</p>

<pre><code>- (void)adjustLayoutWithSearchBarTop:(CGFloat)top {
self.frame = CGRectMake(0, self.top, self.width, SCREEN_HEIGHT-self.top);
_searchBar.frame = CGRectMake(0, top, self.width, 44);
_tableView.frame = CGRectMake(0, _searchBar.bottom, self.width, self.height-_searchBar.bottom);
</code></pre>

<p>}</p>

<pre><code>- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (_isSwiping) {
    _isSwiping = NO;
    [self endMoving];

}
</code></pre>

<p>}</p>

<pre><code>- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView.contentOffset.y &lt; 0 &amp;&amp; !scrollView.isDecelerating &amp;&amp; (int)_searchBar.top == 0) {
    _isSwiping = YES;
}
if (_isSwiping) {
    [self moveWithOffset:-scrollView.contentOffset.y];
    scrollView.contentOffset = CGPointMake(0, 0);
}
</code></pre>

<p>}</p>