Search code examples
uitableviewnibreusabilityidentifier

iPhone: Is there a way to loadFromNib AND have a reuseIdentifier?


I am thinking about this problem now for very long.

I try to use different types of cells in my table, that each have their own cell controller and have a reuseIdentifier AND load from NIB.

The problem boils down to this: You can either init a Cell via [UITableViewCell initWithStyle:reuseIdentifier:] or via [NSBundle loadNibNamed:owner:options:].

Do i overlook something or is there a possibility to have both: load from nib and use reuseIdentifier?


Solution

  • Asking a question can sometimes lead you to the right track :I

    The answer can be found here: https://discussions.apple.com/thread/1664267?threadID=1664267