Reputation: 55604
I have a subclass of UITableViewCell and I have the layout of the contentView in an nib. How can I load the view in the nib as the contentView in the subclass? What method do I load the nib in? drawRect?
Upvotes: 3
Views: 2205
Reputation: 1906
See the Table View Programming guide from apple.
Look at Listing 5-5 Loading a cell from a nib file and assigning it content. It does exactly what you ask for.
regards Yoeri
Upvotes: 3