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

Ios UIViewAnimationOptions.fromMask()发生了什么变化?新的替代方案是什么?,ios,objective-c,swift,core-animation,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.hei

例如:

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()
不见了,我该怎么办呢?

我想出来了

改用
uiviewmanimationoptions(rawValue:curve)
。确保(在我的示例中)将曲线强制转换为
(info[UIKeyboardAnimationCurveUserInfo]作为NSValue)作为UInt