We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func keyboardDidShow(_ notification: Notification) { let info = (notification as NSNotification).userInfo let keyboardSize = ((info![UIKeyboardFrameBeginUserInfoKey] as AnyObject).cgRectValue.size) self.oldFrame = self.alertView.frame let extraHeight = (oldFrame.size.height + oldFrame.origin.y) - (self.view.frame.size.height - keyboardSize.height) if extraHeight > 0 { UIView.animate(withDuration: 0.3, animations: { () -> Void in self.alertView.frame = CGRect(x: self.oldFrame.origin.x, y: self.oldFrame.origin.y - extraHeight - 8, width: self.oldFrame.size.width, height: self.oldFrame.size.height) }) } }
When focusing on a UITextField inside of a ZAlertView, the application crashes on this line:
let keyboardSize = ((info![UIKeyboardFrameBeginUserInfoKey] as AnyObject).cgRectValue.size)
The error reported is:
fatal error: unexpectedly found nil while unwrapping an Optional value
The text was updated successfully, but these errors were encountered:
facing the same issue
Sorry, something went wrong.
Thanks for reporting. Please checkout version 0.3.3.
No branches or pull requests
When focusing on a UITextField inside of a ZAlertView, the application crashes on this line:
The error reported is:
The text was updated successfully, but these errors were encountered: