From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 107 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h b/screendisplay/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h new file mode 100755 index 0000000..46e1068 --- /dev/null +++ b/screendisplay/Pods/MJRefresh/MJRefresh/Base/MJRefreshComponent.h @@ -0,0 +1,107 @@ +// ������������: https://github.com/CoderMJLee/MJRefresh +// ������������: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 +// MJRefreshComponent.h +// MJRefreshExample +// +// Created by MJ Lee on 15/3/4. +// Copyright (c) 2015��� ���������. All rights reserved. +// ��������������������� + +#import <UIKit/UIKit.h> +#import "MJRefreshConst.h" +#import "UIView+MJExtension.h" +#import "UIScrollView+MJExtension.h" +#import "UIScrollView+MJRefresh.h" +#import "NSBundle+MJRefresh.h" + +/** ��������������������� */ +typedef NS_ENUM(NSInteger, MJRefreshState) { + /** ������������������ */ + MJRefreshStateIdle = 1, + /** ������������������������������������ */ + MJRefreshStatePulling, + /** ������������������������ */ + MJRefreshStateRefreshing, + /** ��������������������� */ + MJRefreshStateWillRefresh, + /** ��������������������������������������������������� */ + MJRefreshStateNoMoreData +}; + +/** ��������������������������� */ +typedef void (^MJRefreshComponentRefreshingBlock)(void); +/** ������������������������(������������������������������) */ +typedef void (^MJRefreshComponentbeginRefreshingCompletionBlock)(void); +/** ������������������������ */ +typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void); + +/** ��������������������� */ +@interface MJRefreshComponent : UIView +{ + /** ������scrollView������������inset */ + UIEdgeInsets _scrollViewOriginalInset; + /** ��������� */ + __weak UIScrollView *_scrollView; +} +#pragma mark - ������������ +/** ��������������������� */ +@property (copy, nonatomic) MJRefreshComponentRefreshingBlock refreshingBlock; +/** ��������������������������������� */ +- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action; + +/** ������������ */ +@property (weak, nonatomic) id refreshingTarget; +/** ������������ */ +@property (assign, nonatomic) SEL refreshingAction; +/** ��������������������������������������� */ +- (void)executeRefreshingCallback; + +#pragma mark - ������������������ +/** ������������������ */ +- (void)beginRefreshing; +- (void)beginRefreshingWithCompletionBlock:(void (^)(void))completionBlock; +/** ������������������������(������������������������������) */ +@property (copy, nonatomic) MJRefreshComponentbeginRefreshingCompletionBlock beginRefreshingCompletionBlock; +/** ��������������������� */ +@property (copy, nonatomic) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingCompletionBlock; +/** ������������������ */ +- (void)endRefreshing; +- (void)endRefreshingWithCompletionBlock:(void (^)(void))completionBlock; +/** ������������������ */ +@property (assign, nonatomic, readonly, getter=isRefreshing) BOOL refreshing; +//- (BOOL)isRefreshing; +/** ������������ ������������������������������ */ +@property (assign, nonatomic) MJRefreshState state; + +#pragma mark - ��������������������� +/** ������scrollView������������inset */ +@property (assign, nonatomic, readonly) UIEdgeInsets scrollViewOriginalInset; +/** ��������� */ +@property (weak, nonatomic, readonly) UIScrollView *scrollView; + +#pragma mark - ������������������������ +/** ��������� */ +- (void)prepare NS_REQUIRES_SUPER; +/** ���������������frame */ +- (void)placeSubviews NS_REQUIRES_SUPER; +/** ���scrollView���contentOffset��������������������������� */ +- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; +/** ���scrollView���contentSize��������������������������� */ +- (void)scrollViewContentSizeDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; +/** ���scrollView������������������������������������������ */ +- (void)scrollViewPanStateDidChange:(NSDictionary *)change NS_REQUIRES_SUPER; + + +#pragma mark - ������ +/** ������������������(������������������) */ +@property (assign, nonatomic) CGFloat pullingPercent; +/** ��������������������������������������� */ +@property (assign, nonatomic, getter=isAutoChangeAlpha) BOOL autoChangeAlpha MJRefreshDeprecated("���������automaticallyChangeAlpha������"); +/** ��������������������������������������� */ +@property (assign, nonatomic, getter=isAutomaticallyChangeAlpha) BOOL automaticallyChangeAlpha; +@end + +@interface UILabel(MJRefresh) ++ (instancetype)mj_label; +- (CGFloat)mj_textWith; +@end -- Gitblit v1.8.0