search

Home  >  Q&A  >  body text

objective-c - iOS heightForRowAtIndexPath会执行6次呢

黄舟黄舟2818 days ago741

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:42:31

    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?

    reply
    0
  • 迷茫

    迷茫2017-04-17 16:42:31

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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:42:31

    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.

    reply
    0
  • Cancelreply