2

I have been using a customCell.xib with its own customCellClass within a UITableView,which is built without using autoLayout feature(since I need to make it work even on platforms prior to iOS6). The UITableView fetches this custom made xib cell in its dataSource method. The dilemma I'm facing is that the UITableView crashes abruptly 50 % of times I run it but executes and shows the tabeview perfectly rest of the times..

I m currently using XCode 4.5.

Here's the crash Log i receive ..

'Auto Layout still required after executing -layoutSubviews. UITableViewCell's implementation of -layoutSubviews needs to call super.'

DD_
  • 7,230
  • 11
  • 38
  • 59
AppleDelegate
  • 4,269
  • 1
  • 20
  • 27

2 Answers2

4

This has been covered in some detail here, and it is not as simple as simply calling [super layoutSubviews];

"Auto Layout still required after executing -layoutSubviews" with UITableViewCell subclass

Try disabling 'translatesAutoresizingMaskIntoConstraints' on each of your views. Auto Layout is somehow being triggered, and that causes this bug on UITableView to pop up.

Community
  • 1
  • 1
Tim
  • 226
  • 1
  • 2
-4

Your custom cell class implementation overrides layoutSubviews without calling super. That's right there in the crash log!

Cocoanetics
  • 8,171
  • 2
  • 30
  • 57