1234567891011121314151617181920212223242526272829303132 |
- //
- // UIScrollView+Refresh.h
- // homy
- //
- // Created by 翟玉磊 on 2018/11/9.
- // Copyright © 2018 翟玉磊. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface UIScrollView (Refresh)
- /// 添加下拉刷新控件
- - (MJRefreshHeader *)addHeaderRefresh:(void(^)(MJRefreshHeader *header))refreshingBlock;
- /// 添加上拉加载控件
- - (MJRefreshFooter *)addFooterRefresh:(void(^)(MJRefreshFooter *footer))refreshingBlock;
- /// 添加下拉刷新控件
- - (MJRefreshHeader *)addImageHeaderRefresh:(void(^)(MJRefreshHeader *header))refreshingBlock;
- /// 添加上拉加载控件
- - (MJRefreshFooter *)addImageFooterRefresh:(void(^)(MJRefreshFooter *footer))refreshingBlock;
- /// 添加下拉刷新控件
- - (MJRefreshNormalHeader *)native_addHeaderRefresh:(void(^)(MJRefreshNormalHeader *header))refreshingBlock;
- /// 添加上拉加载控件
- - (MJRefreshAutoNormalFooter *)native_addFooterRefresh:(void(^)(MJRefreshAutoNormalFooter *footer))refreshingBlock;
- @end
- NS_ASSUME_NONNULL_END
|