解决控制台打印出以下语句:
-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on> without matching -beginDisablingInterfaceAutorotation. Ignoring.
原因:在tableView中的cell添加了键盘,当tableView 使用drag收回键盘的时候打印出的警告。
解决方法:
在scrollViewWillBeginDragging方法中用代码把键盘收回
或者在里面用这句 self.view.endEditing(true) 。

网友评论