I have a .xib with an image and a label in the potition that i want.. And i want in the cellForRowAtIndexPath function to set image and label.text then to add then view in the cell and show the cell
Asked
Active
Viewed 227 times
2
-
The full description about the uitableview is at http://www.icodeblog.com/2009/05/24/custom-uitableviewcell-using-interface-builder/ – Marios Oct 11 '11 at 11:30
1 Answers
4
Check this: How do you load custom UITableViewCells from Xib files?
But i do not recommend to load UITableViewCells from xib.
You loose performance on a very critical part.
I recommend to create you UITableViewCell subclasses by code. Because inflating a XIB(XML) during scrolling will create buckings.
If you wan't to have a nice, snappy app, then code instead of XIB (at least the UITableViewCell subclasses).

Community
- 1
- 1

Jonas Schnelli
- 9,965
- 3
- 48
- 60
-
1true, although the UINib option available in iOS4+ allows the nib file to be cached in memory (not having to read it from disk every time), improving performance. You can get very good, fluid scrolling using this, even with complex cells. – jbat100 Oct 11 '11 at 12:01