objective c - Is there a way to make some parts of UITableView not scrollable? -
I'm using a paper fold animation to show some content at the top of the screen above the table view.
Now I have a button that triggers this folding action.
I would rather try to swipe this action from top to bottom rather than triggering. But my tableview is full screen, so I think that if UITableViewCell, or a part of the table, is not scrollable, then there is a way to trigger Fold swipe for it
I Trying to use the UISwipeGestureRecognizer but it does not work so well ...
scrolling through the UITB There are several ways to stop the scene. UITableView is the subcategory of the UIScroll view so that you can use the UIScroll View methods to prevent the table view to scroll. Therefore, in your table view controller, you can enable the [[self tableview] setcrawl: No]
call. You should also be able to prevent any user interaction on the table view by calling [[self tableView] setUserInteractionEnabled: NO]
(a method on UIView).
You could cancel the UITableView subclass and setContentOffset:
method (another scrollview method), and only call [super setContentOffset:]
In order to scroll the table view (it is possible that you may need to override other ways along with it.
You also catch the pan gesture recogniser that is using the scrollview Can get, it allows you to see exactly what message scrollview scrolls And you may be able to adjust the offset according to the book [[self tableView] panGestureRecognizer]
. Once you have the panGestureRecognizer you have to wait for your swipeGestureRecognizer to install it Should be able to use [UIPanGestureRecognizer requireGestureRecognizerToFail:
Which means that the pan gesture uses the recogniser book view only if working, then the swipe starts failing Tax If you do not have to make it so swipeGestureRecognizer fails, then it does not happen. Start near the edge of the screen / P>
Comments
Post a Comment