0

例如换入另一个 UIImage 等。

4

2 回答 2

2

UIImageView 是 UIView 的子类。您可以使用 将手势识别器添加到任何视图addGestureRecognizer:

于 2011-03-05T20:36:45.000 回答
2

我看到你标记了这个 [iphone-sdk-3.0]。如果您可以使用 SDK 3.2 或更高版本,则可以使用UISwipeGestureRecognizer. 如果您必须坚持使用 3.0,则必须继承 UIImageView 和 process touchesBegan:withEvent:touchesMoved:withEvent:touchesEnded:withEvent:和/或touchesCancelled:withEvent:

于 2011-03-05T20:40:59.740 回答