我试图UIButton
在点击时改变我的左手,我希望它同时缩小。我试过下面的代码,它确实向左变换,但我不知道如何缩小按钮。我怎么能缩小和改变UIButton
.
@IBAction func joinCircleButton(sender: AnyObject) {
let button = sender as UIButton
UIView.animateWithDuration(1.0, animations:{
button.frame = CGRectMake(button.frame.origin.x - 75, button.frame.origin.y,button.frame.size.width, button.frame.size.height)
})
}