2011-02-07 8 views
0

アニメーションでボタンの位置を変更したいのですが、アニメーションのボタンをクリック可能にしなければなりません。アニメーションの変更中にクリック可能なボタン - 方法?

どうすればいいですか?

私はいくつかのソリューションを試しましたが、まだ成功していません。

[UIButton beginAnimations:nil context:nil]; 
[UIButton setAnimationDuration:1.0]; 
[UIButton setAnimationBeginsFromCurrentState:YES]; 
mybutton.transform = CGAffineTransformMakeTranslation(-10, 0); 
// I also tried this: 
// mybutton.frame = CGRectMake(300, 209, 57, 34); 
[UIButton commitAnimations]; 

事前

答えて

0

多くのおかげで、このようにしてみてください助けてください、私はそれが仕事だ願っています。

myButton.center = CGPointMake(160,300);

関連する問題