Files
yuyin_ios/SweetParty/常用工具/刷新封装/UIScrollView+MJRefreshEX.h
2025-08-08 11:05:33 +08:00

44 lines
876 B
Objective-C
Executable File

//
// UIScrollView+MJRefreshEX.h
// MJRefreshEX
//
// Created by Destiny on 2018/5/16.
// Copyright © 2018年 Destiny. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIScrollView (MJRefreshEX)
/**
下拉刷新
@param beginRefresh 是否自动刷新
@param animation 是否需要动画
@param refreshBlock 刷新回调
*/
- (void)addHeaderWithHeaderWithBeginRefresh:(BOOL)beginRefresh animation:(BOOL)animation refreshBlock:(void(^)(NSInteger pageIndex))refreshBlock;
/**
上啦加载
@param automaticallyRefresh 是否自动加载
@param loadMoreBlock 加载回调
*/
- (void)addFooterWithWithHeaderWithAutomaticallyRefresh:(BOOL)automaticallyRefresh loadMoreBlock:(void(^)(NSInteger pageIndex))loadMoreBlock;
/**
普通请求结束刷新
*/
- (void)endFooterRefresh;
/**
没有数据结束刷新
*/
- (void)endFooterNoMoreData;
@end