Jonathan.
Jonathan.

Reputation: 55604

Subclass UITableViewCell with content view loaded from nib

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

Answers (1)

Yoeri
Yoeri

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

Related Questions