How to implement the standard table cell behavior if the cell has a UIScrollView with a menu. Maybe you need to configure UIScrollView ?

There are problems with the "highlighting" and "selection" of the cell - when tapped, the cell is not highlighted and the didSelectRowAtIndexPath method is not called on the TableViewController -a.

Tried to solve the problem using UITapGestureRecognizer and overriding the methods touchesBegan, touchesEnded, touchesMoved from the subView .

The cell looks like in the picture:

alt text

  • one
    why instead of UIScrollView not to use UIView and not to move it? It seems to be more appropriate. Keeping UIScrollView together with UITableView is not a good idea, it can catch tachi designed for UITableView and hence your problems. - iFreeman
  • @iFreeman to move UIView is also the invention of the bicycle, it will be difficult to achieve smooth animation - Alexey Alybin
  • maybe this session will be useful: developer.apple.com/wwdc/videos/index.php?id=217 , especially the Demo from the 11th minute. - Anastasia
  • @iFreeman move UIView using UIPanGestureRecognizer - the most appropriate and easiest way - Aleksey Alybin
  • one
    There are many useful libraries like github.com/MortimerGoro/MGSwipeTableCell - Valentine

0