We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//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 }
The text was updated successfully, but these errors were encountered:
我找到原因了,是因为代码执行了这里造成的 if mainScrollView.contentOffset.y < sillValue { scrollView.contentOffset = scrollView.am_originOffset ?? .zero scrollView.am_isCanScroll = false mainScrollView.am_isCanScroll = true }
在真机11的时候 mainScrollView.contentOffset.y < sillValue 这个条件成立 不知道为什么??
Sorry, something went wrong.
真机11,系统14.5,不管有没有导航栏,来回滑动都会滚动到第一条数据的地方 就是会执行这个归零代码 if mainScrollView.contentOffset.y < sillValue { scrollView.contentOffset = scrollView.am_originOffset ?? .zero scrollView.am_isCanScroll = false mainScrollView.am_isCanScroll = true }
能麻烦录个视频吗,就是bug的现象
No branches or pull requests
//MARK: ----AquamanPageViewControllerDelegate----
override func headerViewFor(_ pageController: AquamanPageViewController) -> UIView {
return headerView
}
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)
// }
The text was updated successfully, but these errors were encountered: