简体   繁体   中英

objective-c uitableview when does dequeing cells not make sense

I know the general guideline is to dequeue cells as they go off the screen in a uitableviewcell.

I would think this recommendation/guideline is relaxed when you have the uitableview acting as a form and have possibly different types of uitableviewcells in there.

eg label/textfield, label/uiswitch, label/label/uidatepicker.

Such a tableview in my case has been limited to 4-5 cells.

Do we need to worry about dequeing form based (4-5 cells) tableviews?

What do y'all do when faced with a tableview with different types of cells in it?

For every type of cell you will use a different identifier. In you case, with 4 or 5 cells, it will not have a big impact on performances if you don't follow the guidelines.

These guidelines must be followed when you scroll a lot of cells.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM