Swift 2.0 后 options 成了一个 Set 集合 [UIViewAnimationOptions.Repeat , UIViewAnimationOptions.Autoreverse]
2015-06-17
option:后面可以加上UIViewAnimationOptions 这样会有代码提示,不然看上去怪怪的.
UIView.animateWithDuration(1, delay: 0, options: UIViewAnimationOptions.Repeat | UIViewAnimationOptions.Autoreverse | UIViewAnimationOptions.CurveEaseIn,animations:
UIView.animateWithDuration(1, delay: 0, options: UIViewAnimationOptions.Repeat | UIViewAnimationOptions.Autoreverse | UIViewAnimationOptions.CurveEaseIn,animations:
2015-05-29