Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10 beta, crash when accessing keyboard frame

iOS 10 Beta 4

Xcode 8 Beta 1

Getting a crash when accessing the keyboard frame size, like so:

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)!

Log shows:

[MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/

like image 715
William GP Avatar asked Aug 13 '16 07:08

William GP


1 Answers

According to a response from Apple on a private Radar, this was fixed in the production builds of iOS 10.0 and Xcode 8 and later.

like image 150
JAL Avatar answered Nov 15 '22 17:11

JAL