objective-c - iOS heightForRowAtIndexPath会执行6次呢
黄舟
黄舟 2017-04-17 16:40:31
0
3
726
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
Ty80

The system will automatically call it, and it may not be called 5 times, but it may not be accurate how many times.

I don’t know what you want to do in it. Wouldn’t it be better to add an if judgment?

迷茫

Docker: https://github.com/forkingdog/UITableView-FDTemplateLayoutCell

Ty80

This will indeed go in many times.
I tested it and found that not only heightForRowAtIndexPath will be entered multiple times, but also methods such as numberOfRowsInSection will be entered multiple times.
Currently, I don’t understand why I entered so many times. The main reason is that if you know the question, please tell me.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template