search

Home  >  Q&A  >  body text

ios - UICollectionView的布局问题,为什么顶上会多出来一截?

开始是好的,加了个Navigation之后就这样了.我比划了下,这段还真和Navigation的高度相当,难道是Navigation的问题?

PHPzPHPz2890 days ago308

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:59:56

    Go and take a look at this property in UIViewControllerautomaticallyAdjustsScrollViewInsets.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:59:56

    This section is reserved for NavigationBar, your frame is not set properly,

    Change the value (change y to 0)

    or pull to the top

    If this is not the problem, you need to check whether the height of the Header is set. In the Delegate, it is not set by default.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:59:56

    Can you give me some code to look at?

    reply
    0
  • Cancelreply