护舒宝

 

swift 头尾式动画

1.0 头尾式动画
        UIView.beginAnimations(nil, context: nil)
        UIView.setAnimationDuration(1.0) // 设置执行动画所需要的时间

        // 要执行动画的代码  coding


        UIView.commitAnimations()  // 提交动画

 

posted on 2015-12-12 09:41  护舒宝  阅读(120)  评论(0)    收藏  举报

导航