2014-11-15 50 views
0

例如在:UIViewAnimationOptions.fromMask()發生了什麼?新的替代方法是什麼?

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

我想通了。

改爲使用UIViewAnimationOptions(rawValue: curve)。請確保(在我的示例中)投射曲線爲(info[UIKeyboardAnimationCurveUserInfoKey] as NSValue) as UInt

相關問題