uisnapbehavior

UIAnimator's UISnapBehavior possible with UIScrollview?

无人久伴 提交于 2019-12-22 18:11:44
问题 I am trying to figure out if I can use a UISnapBehavior from UIAnimator inside a UIScrollview to make scroll view's content snap to a point. So far my findings have been lead to that this is impossible. What I am Trying to Achieve UIScrollView to 'snap' to certain point while the user is dragging the scroll view. However, the scrolling has to resume from snapped position without the user having to lift the touch. Apple seems to achieve this in Photo Editing in their iOS Photos App. (See

UIAnimator's UISnapBehavior possible with UIScrollview?

旧街凉风 提交于 2019-12-06 05:38:12
I am trying to figure out if I can use a UISnapBehavior from UIAnimator inside a UIScrollview to make scroll view's content snap to a point. So far my findings have been lead to that this is impossible. What I am Trying to Achieve UIScrollView to 'snap' to certain point while the user is dragging the scroll view. However, the scrolling has to resume from snapped position without the user having to lift the touch. Apple seems to achieve this in Photo Editing in their iOS Photos App. (See screenshot below) What I Tried I tried to gain this behavior by attaching a UIPanGestureRecognizer to the