ユーザーが画面に触れた時点から UIImageView に波及効果を作成したいと考えています。これを行うための最良かつ簡単な方法は何ですか。
1178 次
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 に答える