문제

I am trying to animate table rows in a UITableView in an iPhone project as I swipe across the screen to reload the data.

When I disable animations and only call reloadData, table continues responding to swipe gestures.

When I add animations with the reloadSections:WithRowAnimation: method, table stops responding to swipes, and only the navigation bar at the top responds to swipes.

Another change is that, table starts responding to selection and I have to manually disable it again. I suspect these two issues might be related.

I am using the swipe detection code over here btw: 1

도움이 되었습니까?

해결책

My code for managing the gesture was in a UIView which contained another UIView which in turn contains the UITableView. It turns out that the user interaction of the UIView which is the superview of the UITableView was Enabled. Setting it to disabled caused the gesture to move up in the responder chain, and solve the problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top