开发者

objective-c uitableview when does dequeing cells not make sense

开发者 https://www.devze.com 2023-03-12 18:43 出处:网络
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

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.

e.g. 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开发者_如何学Python-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.

0

精彩评论

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