//
//  JFRefreshOpration.h
//  RefreshDemo
//
//  Created by Mr_J on 16/3/5.
//  Copyright 漏 2016骞?Mr_J. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, JFRefreshState) {
    stateNormal = 0,
    stateSlide,
    stateTouch
};


@interface JFRefreshOpration : UIView

@property (nonatomic, assign) CGPoint location; //scrollView.contentOffset瀵逛簬ContentInset鍋忕Щ閲?@property (nonatomic, assign) CGFloat baseHeight; //澶磋鍥惧熀鍑嗛珮搴?default == 64
@property (nonatomic, assign) CGFloat show_MIN_Y; //瑙嗗浘寮€濮嬩綅缃?@property (nonatomic, assign) CGFloat startLocation_Y; //寮€濮嬫洸绾垮彉鎹㈢殑鍊?@property (nonatomic, assign) CGFloat topShadowAlpha; //椤堕儴shapeLayer闃村奖閫忔槑搴?@property (nonatomic, copy) void (^actionOfIndex)(NSInteger index);

@property (nonatomic, assign) JFRefreshState refreshState;

@property (nonatomic, weak) UIScrollView *scrollView;
@property (nonatomic, strong) NSArray *normalItems; //甯告€佷笅鎸夐挳鍥剧墖鏁扮粍
@property (nonatomic, strong) NSArray *highlightItems; //楂樹寒涓嬫寜閽浘鐗囨暟缁?
- (void)resume;

@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com