在我的iPad应用程序中,我有一个带有多个部分和行的表格。当我将方向从横向更改为纵向或从纵向更改为横向时,我会收到以下错误之一:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WebScriptObjectPrivate countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x124a15a0'
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DOMHTMLHeadElement rotatingClient]: unrecognized selector sent to instance 0x8c60a20'
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x8f7c380'
我没有明确使用抛出异常的任何类。
编辑: 使用Instruments,我发现这是崩溃发生的地方。我以前没有用过它,所以不知道该怎么做。
# Event Type ∆ RefCt RefCt Timestamp Responsible Library Responsible Caller
2 Zombie -1 00:38.935.631 UIKit -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:]