1
我有滾動視圖上有多個文本字段。但是,當我顯示的所有文字字段和標籤崩潰我的鍵盤TextField崩潰
func keyboardWillShow(sender: NSNotification) {
scroll.frame = CGRectMake(scroll.frame.origin.x, scroll.frame.origin.y, scroll.frame.size.width, self.view.frame.size.height - 216)
}
func keyboardWillHide(sender: NSNotification) {
scroll.frame = CGRectMake(scroll.frame.origin.x, scroll.frame.origin.y, scroll.frame.size.width, self.view.frame.size.height)
}