Pull to open hidden navBar-like menu in iOS? as shown in the GetPocket application

I make myself crazy because of this. This may be one of those things where I need to take a step back and figure out the easiest way to implement this. There is nothing to find on this either. I google-fu'd the hell out of this.

In the Pocket App, when you pull out the menu, it displays itself, as does the searchBar. In this case, the artificial bar, when you pull it out halfway, if you release it, shows the springs in place. If it is released before the halfway, the panel will snap back and hide. As shown here

enter image description here

In my case, I tried to reproduce this without any luck. In my case, I have a UITextView inside the UIViewController view. I think all this is wrong.

UIScrollView, , , , UIScrollView. , , . UITableView? , , / .

.

+5
2

, UIScrollView ( UITableView), , (, ), .

UIScrollViewDelegate
- (void)scrollViewDidScroll:(UIScrollView *)scrollView

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate

, , , , .

- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated
+6

, .

, UIView, , . . UIPanGestureRecognizer UIViewController . , - , , (, ).

UIPanGestureRecognizer, : http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more

+1

All Articles