PagingViewDelegate
@MainActor
@objc
public protocol PagingViewDelegate
Undocumented
-
tableHeaderView的高度,因为内部需要比对判断,只能是整型数
Declaration
Swift
@MainActor func tableHeaderViewHeight(in pagingView: PagingView) -> Int
-
返回tableHeaderView
Declaration
Swift
@MainActor func tableHeaderView(in pagingView: PagingView) -> UIView
-
返回悬浮HeaderView的高度,因为内部需要比对判断,只能是整型数
Declaration
Swift
@MainActor func heightForPinSectionHeader(in pagingView: PagingView) -> Int
-
返回悬浮HeaderView
Declaration
Swift
@MainActor func viewForPinSectionHeader(in pagingView: PagingView) -> UIView
-
返回列表的数量
Declaration
Swift
@MainActor func numberOfLists(in pagingView: PagingView) -> Int
-
根据index初始化一个对应列表实例,需要是遵从
FWPagerViewListViewDelegate
协议的对象。 如果列表是用自定义UIView封装的,就让自定义UIView遵从FWPagerViewListViewDelegate
协议,该方法返回自定义UIView即可。 如果列表是用自定义UIViewController封装的,就让自定义UIViewController遵从FWPagerViewListViewDelegate
协议,该方法返回自定义UIViewController即可。Declaration
Swift
@MainActor func pagingView(_ pagingView: PagingView, initListAtIndex index: Int) -> PagingViewListViewDelegate
Parameters
pagingView
pagingView description
index
新生成的列表实例
-
返回对应index的列表唯一标识
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, listIdentifierAtIndex index: Int) -> String
Parameters
pagingView
pagingView description
index
列表的下标
-
Undocumented
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, mainTableViewDidScroll scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, mainTableViewWillBeginDragging scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, mainTableViewDidEndDragging scrollView: UIScrollView, willDecelerate decelerate: Bool)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, mainTableViewDidEndDecelerating scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, mainTableViewDidEndScrollingAnimation scrollView: UIScrollView)
-
滚动到指定index内容视图时回调方法
Declaration
Swift
@objc @MainActor optional func pagingView(_ pagingView: PagingView, didScrollToIndex index: Int)
-
返回自定义UIScrollView或UICollectionView的Class 某些特殊情况需要自己处理列表容器内UIScrollView内部逻辑。比如项目用了FDFullscreenPopGesture,需要处理手势相关代理。
Declaration
Swift
@objc @MainActor optional func scrollViewClassInListContainerView(in pagingView: PagingView) -> AnyClass
Parameters
pagingView
FWPagingView
Return Value
自定义UIScrollView实例