swift4-动画

//设置动画效果,withDuration动画时间长度,delay刷新间隔时间
        UIView.animate(withDuration: 0.4, delay:0.01, options: [], animations: {
            ()-> Void in
            self.setCardUI(view: uiTap.view!)
        },completion:{
            (finished:Bool) -> Void in
            UIView.animate(withDuration: 0.1, animations:{
                ()-> Void in
                //完成动画时
                self.scrollView.isScrollEnabled = false
            })
        })

猜你喜欢

转载自blog.csdn.net/weixin_41735943/article/details/84953256