search

Home  >  Q&A  >  body text

ios - uitableview的style为grouped的时候,这么把它上面的那一部份去掉?

我用的是uitableviewcontroller,把style设为了group,就会出现上面的那部分空间,我把sectionHeaderHeight设为0 也去不掉,把self.automaticallyAdjustsScrollViewInsets设为no,也不行,

怪我咯怪我咯2837 days ago807

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:19:27

    HeightForHeaderInSection is set to 0, which is equivalent to not being set in the eyes of iOS. The system will set a non-zero value, which is probably what you see. The general approach is to set it to 0.1

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:19:27

    Is it resolved? Seeking the same

    reply
    0
  • Cancelreply