例如:
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()
消失了,我该怎么办?
答案 0 :(得分:0)
我明白了。
请改用UIViewAnimationOptions(rawValue: curve)
。请确保(在我的示例中)将曲线转换为(info[UIKeyboardAnimationCurveUserInfoKey] as NSValue) as UInt