iOS 10测试版,访问键盘框架时崩溃

时间:2016-08-13 07:15:02

标签: ios swift ios10 xcode8

iOS 10 Beta 4

Xcode 8 Beta 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/

1 个答案:

答案 0 :(得分:1)

根据Apple在私人Radar上的回应,此问题已在iOS 10.0和Xcode 8及更高版本的生产版本中得到解决。