我目前正在向按钮添加动画并查看
@button = UIButton.buttonWithType(UIButtonTypeRoundedRect)
@button.frame = [[0,0],[50,50]]
@button.setTitle("Click to move",forState:UIControlStateNormal)
@button.addTarget(self, action:'animate_button',forControlEvents:UIControlEventTouchUpInside)
view.addSubview @button
def animate_button
@button.frame = [[0,0],[0,0]]
UIView.beginAnimations(nil,context:nil)
UIView.setAnimationDuration(0.05)
UIView.setAnimationDelay(0.2)
UIView.setAnimationCurve(UIViewAnimationCurveEaseOut)
@button.frame = [[280,400],[50,50]]
UIView.commitAnimations
end
任何人都可以帮助使用高级动画