iOS 之 UIView.animate 旋转动画之就近原则

2018-02-28  本文已影响0人  willokyes
UIView.animate 旋转动画

UIView.animate(withDuration: 0.25) {
    self.tipIcon.transform = CGAffineTransform(rotationAngle: CGFloat(.pi + 0.001))
}

UIView.animate(withDuration: 0.25) {
     self.tipIcon.transform = .identity
}

animate.gif
上一篇 下一篇

猜你喜欢

热点阅读