UIView.animateWithDuration(0.5, delay: 0.0, usingSpringWithDamping: 0.3, initialSpringVelocity: 0.0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in //在这里面处理你的空间frame self.pressGoodsBtn.frame = CGRect(x: (SCREEN_WIDTH-200)…