Ios UIScrollview skips scroll event to view

I have a UIView, and a UIView can detect a pan gesture to move this UIView to the left. then I add scrollview to this UIView, and this scrollview can also move left and right (the scroll method), in the scrollview view I add a UITableView that can scroll up and down, and the UITableCell can detect a UITapGesture. If I do not use UIScrollView when I scroll the table view to the left (the table view cannot scroll left), the UIView can detect a pan gesture and move left, but if I use UIScrollView when I view the table view, the move event is detected by the UIScrollView and cannot pass it viewview, UIView. How can I do to pass a move event to a UIView if the UIScrollView cannot scroll because it is contentoffset.x == 0 and cannot scroll left, so my UIView can detect a pan gesture and move left. Thanks!

+4
source share

Source: https://habr.com/ru/post/1480425/


All Articles