0

我想从用户触摸屏幕的点开始在 UIImageView 上创建涟漪效果。什么是最好和最简单的方法来做这个。

4

2 回答 2

1

请看这个问题

希望能帮助到你

于 2011-06-10T12:35:34.300 回答
1
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    NSSet *allTouches = [event allTouches];
    UITouch *touch = [[event allTouches] anyObject];        
    CGPoint lastPoint = [touch locationInView:self.view];   
    //animation code
}

使用上述方法,您已在 lastPoint 上设置 UIimageView 中心并播放您的动画代码。它会按你的意愿工作。

于 2011-06-10T12:35:56.890 回答