iOS 10 beta,访问键盘框架时崩溃
iOS 10 beta, crash when accessing keyboard frame
iOS 10 测试版 4
Xcode 8 测试版 1
访问键盘框架大小时发生崩溃,如下所示:
var keyboardFrame:CGRect = (userInfo[UIKeyboardFrameBeginUserInfoKey] as! NSValue).cgRectValue()
keyboardFrame = self.view.convert(keyboardFrame, from: nil)
var contentInset:UIEdgeInsets = self.scrollView.contentInset
contentInset.top = -keyboardFrame.size.height + (tabBarController?.tabBar.frame.size.height)!
contentInset.bottom = keyboardFrame.size.height - (tabBarController?.tabBar.frame.size.height)!
日志显示:
[MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/
根据 Apple 在私人 Radar 上的回复,此问题已在 iOS 10.0 和 Xcode 8 及更高版本的生产版本中修复。
iOS 10 测试版 4
Xcode 8 测试版 1
访问键盘框架大小时发生崩溃,如下所示:
var keyboardFrame:CGRect = (userInfo[UIKeyboardFrameBeginUserInfoKey] as! NSValue).cgRectValue()
keyboardFrame = self.view.convert(keyboardFrame, from: nil)
var contentInset:UIEdgeInsets = self.scrollView.contentInset
contentInset.top = -keyboardFrame.size.height + (tabBarController?.tabBar.frame.size.height)!
contentInset.bottom = keyboardFrame.size.height - (tabBarController?.tabBar.frame.size.height)!
日志显示:
[MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/
根据 Apple 在私人 Radar 上的回复,此问题已在 iOS 10.0 和 Xcode 8 及更高版本的生产版本中修复。