Aquaman
Aquaman copied to clipboard
在真机11,系统14.5的真机上,在有无导航栏的情况下,contentScrollView滑动的时候,直接整个界面滑到顶部了,记录不了每个childScrollView滑动的高度
//MARK: ----AquamanPageViewControllerDelegate---- override func headerViewFor(_ pageController: AquamanPageViewController) -> UIView { return headerView }
override func headerViewHeightFor(_ pageController: AquamanPageViewController) -> CGFloat {
return headerHeight
}
override func menuViewFor(_ pageController: AquamanPageViewController) -> UIView {
return sectionView
}
override func menuViewHeightFor(_ pageController: AquamanPageViewController) -> CGFloat {
return sectionHeight
}
override func originIndexFor(_ pageController: AquamanPageViewController) -> Int {
return currentSelectIndex
}
override func numberOfViewControllers(in pageController: AquamanPageViewController) -> Int {
return viewControllers.count
}
override func pageController(_ pageController: AquamanPageViewController, didDisplay viewController: (UIViewController & AquamanChildViewController), forItemAt index: Int) {
}
override func pageController(_ pageController: AquamanPageViewController, viewControllerAt index: Int) -> (UIViewController & AquamanChildViewController) { return viewControllers[index] }
// override func contentInsetFor(_ pageController: AquamanPageViewController) -> UIEdgeInsets { // return UIEdgeInsets.init(top: 40.0, left: 0, bottom: 0, right: 0) // }
override func menuViewPinHeightFor(_ pageController: AquamanPageViewController) -> CGFloat {
let topH: CGFloat = Device_hasTopNotic ? 88 : 64
return topH
}