ifish/Ifish/JHRefresh/JHRefreshBaseView.h

39 lines
1021 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// JHRefreshBaseView.h
// JHRefresh
//
// Created by Jiahai on 14-9-12.
// Copyright (c) 2014年 Jiahai. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "JHRefreshAniBaseView.h"
typedef NS_ENUM(NSInteger, JHRefreshState) {
JHRefreshStatePulling = 1,
JHRefreshStateNormal,
JHRefreshStateRefreshing
};
@interface JHRefreshBaseView : UIView
/**
* App中有多个refreshView时用以存放不同的配置信息lastUpdateTime也可不填
*/
@property (nonatomic, assign) NSInteger ID;
@property (nonatomic, weak, readonly) UIScrollView *scrollView;
@property (nonatomic, assign) JHRefreshState state;
@property (nonatomic, copy) void (^beginRefreshingBlock)();
@property (nonatomic, strong) JHRefreshAniBaseView<JHRefreshViewDelegate> *aniView;
//@property (nonatomic, copy) void (^)
@property (nonatomic, readonly) BOOL refreshing;
+ (instancetype)createView;
- (void)endRefreshingWithResult:(JHRefreshResult)result;
@end