开始是好的,加了个Navigation之后就这样了.我比划了下,这段还真和Navigation的高度相当,难道是Navigation的问题?
学习是最好的投资!
Go and take a look at this property in UIViewControllerautomaticallyAdjustsScrollViewInsets.
automaticallyAdjustsScrollViewInsets
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.
Can you give me some code to look at?
Go and take a look at this property in UIViewController
automaticallyAdjustsScrollViewInsets
.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.
Can you give me some code to look at?