Subclass UITableViewCell with content view loaded from nib
I have a subclass of UITableViewCell and I have the layout 开发者_JAVA技巧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?
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
精彩评论