Why does hasHighlightRowAtIndexPath cause scroll to stop in UITableview

I have UITableView

, and if I implement didHighlightRowAtIndexPath

and didUnhighlightRowAtIndexPath

in my dedet, I get different scrolls than if I hadn't implemented them.

Usually you can press and hold a button UITableViewCell

and it will highlight, and then if you put your finger up or down on the screen, the highlight will be canceled and your table view will scroll in that direction.

If you implement didHighlightRowAtIndexPath

, then the cell is highlighted, but when you move up and down, the list does not scroll, but the cell is highlighted / not highlighted when your finger moves in and out of the cell.

Is there a way to implement custom highlighting behavior with didHighlightRowAtIndexPath

while keeping the default scrolling behavior UITableView

?

+3
ios objective-c cocoa-touch uikit uitableview


source to share


No one has answered this question yet

Check out similar questions:

1473
Using Auto Layout in UITableView for Dynamic Cell Layouts and Variable Row Heights
1172
How can I disable the selection of a UITableView?
1146
performSelector may leak because its selector is unknown
639
Eliminate extra separators below UITableView
614
Why is there an extra padding added at the top of my UITableView with style UITableViewStyleGrouped in iOS7
613
iOS 8 UITableView separator inset 0 not working
91
Strange behavior of uitableview in iOS11. Cells scroll with push navigation animation
56
UITableView Scrolling Detection
17
UITableView select and deselect row
0
How do I implement a UITableView like scrolling and cell clicking behavior?



All Articles
Loading...
X
Show
Funny
Dev
Pics