开发者

Subclass UITableViewCell with content view loaded from nib

开发者 https://www.devze.com 2023-01-27 18:08 出处:网络
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?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消