有人可以告诉我如何在触摸时缩放 UIButton
吗?该按钮应放大 10% 左右。
提前致谢!
最佳答案
通话
button.transform = CGAffineTransformMakeScale(1.1,1.1);
在按钮按下处理程序中。
或者如果您想使用动画进行缩放:
[UIView beginAnimations:@"ScaleButton" context:NULL];
[UIView setAnimationDuration: 0.5f];
button.transform = CGAffineTransformMakeScale(1.1,1.1);
[UIView commitAnimations];
关于iphone - UIButton 触摸时缩放?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3670799/