UIViewAnimationOptions.fromMask()发生了什么,新的替代方案是什么?

时间:2014-11-15 05:54:39

标签: ios objective-c swift core-animation

例如:

let curve : AnyObject? = info[UIKeyboardAnimationCurveUserInfoKey]

UIView.animateWithDuration(duration, delay: 0, options: UIViewAnimationOptions.fromMask(curve), animations: { self.tableView.contentInset = UIEdgeInsetsMake(0.0, 0.0, kbFrame.height - self.heightView.frame.height, 0.0) }, completion: { (value: Bool) in println() })

现在.fromMask()消失了,我该怎么办?

1 个答案:

答案 0 :(得分:0)

我明白了。

请改用UIViewAnimationOptions(rawValue: curve)。请确保(在我的示例中)将曲线转换为(info[UIKeyboardAnimationCurveUserInfoKey] as NSValue) as UInt