-1
func keyboardWillShow(aNotification: NSNotification) {
//Collect information about keyboard using its notification.
let info = aNotification.userInfo
let duration = (info[UIKeyboardAnimationDurationUserInfoKey] as NSValue) as Double
let curve : AnyObject? = info[UIKeyboardAnimationCurveUserInfoKey]
let kbFrame : AnyObject? = (info[UIKeyboardFrameEndUserInfoKey] as NSValue).CGRectValue().size
}
我怎样才能得到这些应不
“[NSObject的:AnyObject]读?没有一个成员命名'下标'“错误?
在xCode的测试版中,它已经工作,但是从xCode 6.1它不再正常工作。