0

我在玩 UIScrollView 时遇到问题,我使用 customImage 对象类在滚动视图上显示图像,并在每个图像上触发事件,但我必须在它上面做额外的工作,因为给出的图像显示中间图像弹出并触发该弹出图像的事件...我对此感到困惑,任何人都可以告诉我如何实现这一目标...请告诉我一些从它开始的步骤...

图像的 UIScrollView

4

1 回答 1

0

You should be implementing the UIScrollViewDelegate protocol in the controller which should be handling the UIScrollView.

In there you will get a plethora of delegate callbacks such as when the scrollView moves or is decelerating towards a complete stop etc. "UIScrollViewDelegate iOS reference"

You can implement any of the methods to suit your exact needs and modify the image's properties. To find which image is in the middle you would be comparing the contentOffset property of the scroll view o image locations.

于 2012-04-24T19:32:43.380 回答