开发者

Ripple Effect on ipad

I want to create a rippl开发者_StackOverflow中文版e effect on a UIImageView from the point where user touches on the screen. what is the best and simple method for doinf this.


Please look at this question.

Hope it helps


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    NSSet *allTouches = [event allTouches];
    UITouch *touch = [[event allTouches] anyObject];        
    CGPoint lastPoint = [touch locationInView:self.view];   
    //animation code
}

Using above method you have set UIimageView center on lastPoint and play your animation code. It will work that u want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜