12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #import <UIKit/UIKit.h>
- @class JXPagerSmoothView;
- @protocol JXPagerSmoothViewListViewDelegate <NSObject>
- - (UIView *)listView;
- - (UIScrollView *)listScrollView;
- @optional
- - (void)listDidAppear;
- - (void)listDidDisappear;
- @end
- @protocol JXPagerSmoothViewDataSource <NSObject>
- - (CGFloat)heightForPagerHeaderInPagerView:(JXPagerSmoothView *)pagerView;
- - (UIView *)viewForPagerHeaderInPagerView:(JXPagerSmoothView *)pagerView;
- - (CGFloat)heightForPinHeaderInPagerView:(JXPagerSmoothView *)pagerView;
- - (UIView *)viewForPinHeaderInPagerView:(JXPagerSmoothView *)pagerView;
- - (NSInteger)numberOfListsInPagerView:(JXPagerSmoothView *)pagerView;
- - (id<JXPagerSmoothViewListViewDelegate>)pagerView:(JXPagerSmoothView *)pagerView initListAtIndex:(NSInteger)index;
- @end
- @protocol JXPagerSmoothViewDelegate <NSObject>
- - (void)pagerSmoothViewDidScroll:(UIScrollView *)scrollView;
- @end
- @interface JXPagerSmoothView : UIView
- @property (nonatomic, strong, readonly) NSDictionary <NSNumber *, id<JXPagerSmoothViewListViewDelegate>> *listDict;
- @property (nonatomic, strong, readonly) UICollectionView *listCollectionView;
- @property (nonatomic, assign) NSInteger defaultSelectedIndex;
- @property (nonatomic, weak) id<JXPagerSmoothViewDelegate> delegate;
- - (instancetype)initWithDataSource:(id<JXPagerSmoothViewDataSource>)dataSource NS_DESIGNATED_INITIALIZER;
- - (instancetype)init NS_UNAVAILABLE;
- - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
- - (void)reloadData;
- @end
|