UIScrollView with touchesMoved not called

后端 未结 5 1217
忘掉有多难
忘掉有多难 2020-12-21 06:13

I\'ve a UIScrollView that contains an UIImageView. The UIScrollView lets zooming and panning through the UIImageView.

The problem is that I would like know the fing

5条回答
  •  难免孤独
    2020-12-21 06:54

    Try to use the UIScrollViewDelegate to trace the offset change or zoom scale changes.

    - (void)scrollViewDidScroll:(UIScrollView *)scrollView;
    - (void)scrollViewDidZoom:(UIScrollView *)scrollView;
    

    Or check the zoomScale value change of UIScrollView between touchesBegan: & (touchesMoved: or touchesCancelled:) events.

提交回复
热议问题