在 tableView xib 的自定义单元格中使用 autoLayout 时,我收到以下错误。
在iOS 6模拟器运行时 CustomCells的-layoutSubviews的实现需要调用super
Assertion failure in
-[CustomCells layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2372/UIView
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. CustomCells's implementation of -layoutSubviews needs to call super.'
*** First throw call stack:
在 iOS 5 模拟器中运行时
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'
*** First throw call stack:
临时修复:
如果在自定义单元格中禁用自动布局,它工作正常。但在这种情况下,方向处理并不好。请帮忙。