Label in the table's cell
I want to add a label into the table's cell. In my case the cell is 开发者_运维技巧generated from another file using UITableViewCell . any guidance ?
Thanks...
If your other file is a subclass of UITableViewCell you can:
- define the UITableViewCell view programmatically
- define the view using a NIBfile
You would typically pass a pointer to the content of your table view cell to the cell init method so the cell can initialize itself with proper model information.
You should also typically retrieve the cell content view size to place your elements programmatically if you choose method 1.
Good luck.
精彩评论