Exception when setting Table Header


I have this error when I set the table header view. I follow the instruction until page 183. When I run the app, I have below exception:

2014-04-17 21:17:45.128 Homepwner[1288:60b] *** Assertion failure in -[UITableView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2935.137/UIView.m:8794
2014-04-17 21:17:45.132 Homepwner[1288:60b] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Auto Layout still required after executing -layoutSubviews. UITableView’s implementation of -layoutSubviews needs to call super.’

Do you have any idea?



the bug is fixed. I accidentally created 2 views in the Headerview.Xib


This was my problem as well. I had two UIViews, one nested inside the other. Really can’t figure out how I did that.