• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
registerNib:forHeaderFooterViewReuseIdentifier: assert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How does a UIButton perform a segue?
  • Next by Date: Re: How does a UIButton perform a seque?
  • Previous by thread: Re: How does a UIButton perform a segue?
  • Next by thread: Re: registerNib:forHeaderFooterViewReuseIdentifier: assert
  • Index(es):
    • Date
    • Thread