registerNib:forHeaderFooterViewReuseIdentifier: assert
registerNib:forHeaderFooterViewReuseIdentifier: assert
- Subject: registerNib:forHeaderFooterViewReuseIdentifier: assert
- From: Rick Mann <email@hidden>
- Date: Wed, 25 Jun 2014 18:26:53 -0700
*** Assertion failure in -[UITableView _dequeueReusableViewOfType:withIdentifier:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:5413
I want to put a custom view in for my storyboard static table views. So I provided the relevant delegate methods, created my views in a nib file, and called -registerNib:.
Then I go to dequeue the header footer view, and I get that assert.
If I subclass UITableViewHeaderFooterView for my header view subclass, it doesn't assert, but then it complains about two things: that I'm setting the backgroundColor (which is deprecated), and that my -layoutsubviews needs to call super. Thing is, I don't have a -layoutSubviews.
How can I get around this? Thanks.
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden