I have scrollview on which multiple text field are there. But when my KeyBoard shown my all text field and label collapse
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)
}