4
我越來越:AutoLayout打開時,如何解決AssertionFail?
Assertion failure in -[Cell layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2372/UIView.m:5776
2013-01-06 14:58:42.951 Likely[4588:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. Cell's implementation of -layoutSubviews needs to call super.'
我寫道:
-(void)layoutSubviews{
[super layoutSubviews];
}
在Cell.m文件。但不起作用。我能做什麼?
可能相同的症狀http://stackoverflow.com/questions/12610783/auto-layout-still-required-after-executing-layoutsubviews-with-uitableviewcel – vokilam